Plugin causes invalid output
See original GitHub issueHi, thanks for the awesome idea. I have found several issues using this project.
But, I have faced an issue in one of my projects.
How it is now
I am 100% sure that I don’t have any duplicates or unused fixtures. Link to tests: https://github.com/wemake-services/wemake-django-template/blob/master/tests/test_project_generation.py That’s exactly what this plugin reports. But it does report something really strange:
============================= test session starts ==============================
platform linux -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
rootdir: /home/travis/build/wemake-services/wemake-django-template, inifile: setup.cfg
plugins: isort-0.1.0, flake8-1.0.0, deadfixtures-2.0.0, cookies-0.3.0
collected 16 items
Cool, every declared fixture is being used.
You may have some duplicate fixtures:
========================= no tests ran in 0.02 seconds =========================
The command "pipenv run python -m pytest" exited with 0.
What does it mean? Are tests executed? Why You may have some duplicate fixtures
label is shown without any items?
Link to the build: https://travis-ci.org/wemake-services/wemake-django-template/builds/371985278
How it should be
============================= test session starts ==============================
platform linux -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
rootdir: /home/travis/build/wemake-services/wemake-django-template, inifile: setup.cfg
plugins: isort-0.1.0, flake8-1.0.0, deadfixtures-2.0.0, cookies-0.3.0
collected 16 items
Cool, every declared fixture is being used.
You don't have any duplicate fixtures.
....
========================= 4 tests ran in 0.02 seconds =========================
The command "pipenv run python -m pytest" exited with 0.
Offtopic
Are you interested in creating “Projects using it” section? I would be happy to submit https://github.com/wemake-services/wemake-django-template
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
I believe this would be a different issue. 🤔 I’ll need to take a look at pytest code to see what/why is causing the collected count to diverge and see if I can do something about it in the plugin.
@jllorencetti tests count is still invalid.
Plugin version:
deadfixtures-2.0.1
Collected: 16 tests Run: 0 Link: https://travis-ci.org/wemake-services/wemake-django-template/jobs/372351652#L565Should we reopen this one? Or create a new issue?