pchomik / pytest-spec

Library pytest-spec is a pytest plugin to display test execution output like a SPECIFICATION.
GNU General Public License v2.0
100 stars 19 forks source link

Stopped working after upgrading from 2.0.0 to 3.0.x on Python 3.8 #32

Closed lvieirajr closed 4 years ago

lvieirajr commented 4 years ago

Hi, I just trying upgrading my version of pytest-spec on a project from 2.0.0 to 3.0.4 and the output of the tests just went back to the standard pytest-looking output. Im running python 3.8

pchomik commented 4 years ago

Hi,

What is your executed command? What is your pytest configuration (setup.cfg or pytest.ini files)?

lvieirajr commented 4 years ago

executed command is: pytest tests/ On setup.cfg I have this:

[tool:pytest]
addopts = -s -v --spec
mock_use_standalone_module = true
python_files = test_*.py
lvieirajr commented 4 years ago

Ok, so apparently I found out what the problem is: the --spec is conflicting with pytest's -v. Once I remove the -v it works properly

pchomik commented 4 years ago

Great to hear that you found where was the problem. The plugin will not be activated for -v and -q pytest flags.