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.

running pytest with slipcover doesn't load plugins (was "doesn't load pytest.ini")

See original GitHub issue

Running 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:closed
  • Created a year ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
jaltmayerpizzornocommented, May 9, 2022

Awesome! And no worries.

1reaction
jaltmayerpizzornocommented, May 4, 2022

I haven’t heard back from @rlskoeser, but confirmed that plugins are now being load. The fix will be in v0.1.4.

Read more comments on GitHub >

github_iconTop 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 >

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