Skip to content

Tests are not executed when using --dead-fixtures #20

@sobolevn

Description

@sobolevn

As I have already mentioned in #16 (comment) this plugin breaks the test count in the output.

How it is now

It seams that this plugin breaks something related with the tests count.
As we can clearly see that 16 tests were collected, but no tests ran.

============================= 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.1, cookies-0.3.0
collected 16 items                                                             
Cool, every declared fixture is being used.

========================= no tests ran in 0.02 seconds =========================
The command "pipenv run python -m pytest" exited with 0.

Link to the build: https://travis-ci.org/wemake-services/wemake-django-template/builds/372351651

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.

....
========================= 4 tests ran in 0.02 seconds =========================
The command "pipenv run python -m pytest" exited with 0.

Env

Here're my exact versions:

  • python: 3.6.5,
  • pytest: ==3.5.1
  • pytest-deadfixtures: ==2.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions