Why do coverage reports always crash?
See original GitHub issueWhen I use:
pytest
It’s absolutely fine.
However, if I add ‘–cov=whatever’, Python just crashes.
I’m using stackless-python 3.6.6 on Windows 10.
Actually, even the old ‘coverage’ package doesn’t work as well, so I’m not even sure that I should be asking about this here…
Anyways, I’ll just submit an issue and hope for some luck.
I have 2 files in the same folder(main.py & test_main.py).
main.py:
def road(x, y):
return 1
test_main.py:
from main import road
class TestModels(object):
def setup_class(self):
# Init
print('hi')
def teardown_class(self):
print('haha')
def test_exist(self):
assert road(0, 0) == 1
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Visual Studio 2019 crashes when 'Show code coverage ...
Several times a day I experience that Visual Studio 2019 crashes when I want to see my code coverage. It happens when clicking...
Read more >Car crash coverage: Why the media keeps botching it.
“Coverage almost always treats crashes as isolated incidents,” Ralph and her colleagues wrote in a 2019 academic paper.
Read more >Troubleshooting Code Coverage - Visual Studio (Windows)
In this article. What you should see; Possible reasons for seeing no results or old results; Some code is always shown as not...
Read more >Detect and diagnose crashes - Android Developers
Once you have identified that your app is reporting crashes, the next step is to diagnose them. Solving crashes can be difficult. However,...
Read more >Why News Coverage of Car Crashes Favors Drivers
News reports rarely mention the broader context behind car crashes involving pedestrians and cyclists. Safety advocates are right to be ...
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
What exactly does crashing mean? Please add details like traceback, command line, project layout, configuration etc. Ideally you’d post a small reproducing example.
Sorry for the troubles… It turns out to be some sort of compatibility issue with package PyTorch A default python 3.6.8 enviroment works fine.