I got some tests to be executed and I want the report to be generated only if 1 of the tests are fail, right now I use this command:
pytest -v -s --html=report.html --self-contained-html --capture=tee-sys -rx --verbose --maxfail=6 testCases/test_signup_0.py
but this command generates a report for passing tests too.
I tried to add --lf(list fails) but this command test only the fails tests.
Thank you in advance!
From GitHub pytest-html discussion is not possible to that, this features will be added in the 4.x version
GitHub discussion