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 theHOME
and then ignore my existing Git configuration~/.gitconfig
); - or doing a (Python|Docker|Vagrant) trick to isolate the test environment.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Bug fixed in 10 minutes. Wow 👍
This should fix that: https://github.com/pre-commit/pre-commit-hooks/pull/212