question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Isolate test environment

See original GitHub issue
$ sudo apt install python-tox
$ cd pre-commit-hooks
$ pip install -r requirements-dev.txt
$ make test

gives the following output: https://gist.github.com/nagromc/8d44fa7c3fcddcc0af35fe5d9f789c70#file-make-test-output-txt

After some investigation, I found out my Git configuration was interfering with the tests.

I think the tests should be independent from the environment either by:

  • running env HOME=/tmp make test (to change temporarily the HOME and then ignore my existing Git configuration ~/.gitconfig);
  • or doing a (Python|Docker|Vagrant) trick to isolate the test environment.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
nagromccommented, Jul 5, 2017

Bug fixed in 10 minutes. Wow 👍

1reaction
asottilecommented, Jul 5, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

7 Benefits of Testing in Isolation - The New Stack
Testing in isolation is known to be expensive. It's time-consuming to execute thoroughly, and it typically requires a testing environment ...
Read more >
Optional: Creating an Isolated Test Environment - VMware Docs
If you are performing a test failover, you can leverage this capability by testing with an isolated set of pre-configured networks, ...
Read more >
Configure a team with security isolation in a dev/test ...
Use this dev/test environment to experiment and fine-tune settings for your specific needs before deploying this type of team in production.
Read more >
Testing Microservices: You're Thinking About (Environment ...
Testing Microservices: You're Thinking About (Environment) Isolation All Wrong ... Test environment goals: low latency, high realism, no conflicts, ...
Read more >
E2E testing in a controlled and isolated environment
E2E testing in a controlled and isolated environment ... Traditionally, many teams used test environments that run on dedicated machines.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found