We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am running the subtests example from the documentation:
def test_foo(subtests): for i in range(5): with subtests.test(msg="custom", i=i): assert i % 2 == 0
I am running the tests using
pytest tests/test_tmp.py -v
When I install using pip
pip install pytest-subtests
I get the following output
tests/test_tmp.py::test_foo SUBPASS [100%] tests/test_tmp.py::test_foo SUBFAIL [100%] tests/test_tmp.py::test_foo SUBPASS [100%] tests/test_tmp.py::test_foo SUBFAIL [100%] tests/test_tmp.py::test_foo SUBPASS [100%] tests/test_tmp.py::test_foo PASSED [100%]
However, if I install it directly from github using
pip install git+https://github.com/pytest-dev/pytest-subtests
I get the expected output
tests/test_tmp.py::test_foo [custom] (i=0) SUBPASS [100%] tests/test_tmp.py::test_foo [custom] (i=1) SUBFAIL [100%] tests/test_tmp.py::test_foo [custom] (i=2) SUBPASS [100%] tests/test_tmp.py::test_foo [custom] (i=3) SUBFAIL [100%] tests/test_tmp.py::test_foo [custom] (i=4) SUBPASS [100%] tests/test_tmp.py::test_foo PASSED [100%]
The text was updated successfully, but these errors were encountered:
I suspect this is simply because #88 fixing this landed a few days ago and hasn't yet been published to pypi.
Sorry, something went wrong.
No branches or pull requests
I am running the subtests example from the documentation:
I am running the tests using
When I install using pip
I get the following output
However, if I install it directly from github using
I get the expected output
The text was updated successfully, but these errors were encountered: