running pytest with slipcover doesn't load plugins (was "doesn't load pytest.ini")
See original GitHub issueRunning slipcover with pytest as described in the readme doesn’t work for me; I think this is because it isn’t picking up my pytest.ini
file.
Running python -m pytest
works as expected; running python -m slipcover -m pytest
errors — I think based on the error I’m getting it’s because of the missing configuration from my pytest.ini. (I’m trying it out with a django project, which requires DJANGO_SETTINGS_MODULE
to be defined when not running tests through django.)
When I ran on a project without a pytest.ini
file it worked fine.
Issue Analytics
- State:
- Created a year ago
- Comments:12
Top Results From Across the Web
How to install and use plugins — pytest documentation
This section talks about installing and using third party plugins. ... This means that any subsequent try to activate/load the named plugin will...
Read more >Why doesn't pytest load conftest.py when running only a ...
I am using Pytest 6.1.0 on Python 3.8. EDIT: Alright, I found an acceptable workaround. I can override INI file options through the...
Read more >p plugin not working, fails to early-load plugin #4718 - GitHub
I hoped to use this to early-load the code coverage plugin pytest-cov . (The motivation is that pytest-cov should be loaded before any...
Read more >pytest-dotenv - PyPI
A py.test plugin that parses environment files before running tests. ... This little plugin uses python-dotenv to load any environment variables from a...
Read more >Pytest | PyCharm Documentation - JetBrains
By default, the suggested default test runner is unittest. So, to utilize pytest, you need to make it the default test runner first....
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
Awesome! And no worries.
I haven’t heard back from @rlskoeser, but confirmed that plugins are now being load. The fix will be in v0.1.4.