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!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.