No "Testsuite summary" with a subset of 'faker' tests
For some reason, no "Testsuite summary" output is generated when running the faker test suite.
A simple reproducer which skips all the other tests is to use the following in pytest.ini:
pytest.ini
[pytest]
addopts =
--ignore=tests/mymodule
--ignore=tests/providers
--ignore=tests/test_*.py
--ignore=tests/utils
--ignore=tests/pytest/session_overrides
This results in the following output from pytest --automake:
PASS: tests/pytest/test_autouse_faker_locale.py:test_no_injection
PASS: tests/pytest/test_autouse_faker_locale.py:test_inject_faker_seed
PASS: tests/pytest/test_autouse_faker_seed.py:test_no_injection
PASS: tests/pytest/test_autouse_faker_seed.py:test_inject_faker_locale
PASS: tests/pytest/test_manual_injection.py:test_no_injection
PASS: tests/pytest/test_manual_injection.py:test_inject_faker_locale
PASS: tests/pytest/test_manual_injection.py:test_inject_faker_seed
PASS: tests/pytest/test_manual_injection.py:test_inject_faker_seed_and_locale
but there is no expected "Testsuite summary".
Ignoring the tests/pytest test cases allows the test suite to pass, with a "Testsuite summary":
[pytest]
addopts =
--ignore=tests/pytest
Results:
Testsuite summary
# TOTAL: 2151
# PASS: 2146
# SKIP: 5
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
DURATION: 39
This was discovered during development and testing of: https://git.openembedded.org/meta-openembedded-contrib/log/?h=timo/python3-orjson-ptest-v2