Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Logging, Screenshots, and Reports examples

Log files in example_logs/ were generated when ran and failed. By default, logs are saved to latest_logs/. If ARCHIVE_EXISTING_LOGS is set to True in, past logs get saved to archived_logs/.

pytest --browser=chrome

nosetests --browser=firefox

Expected log files generated during failures:

In addition to logging, you can also generate test reports:

Reports are most useful when running large test suites. Pytest and Nosetest reports are handled differently.

Pytest Reports:

Using --html=report.html gives you a fancy report of the name specified after your test suite completes.

pytest --html=report.html

Nosetest Reports:

The --report option gives you a fancy report after your test suite completes. (Requires --with-testing_base to also be set when --report is used because it's part of that plugin.)

nosetests --report --browser=chrome

(NOTE: You can add --show_report to immediately display Nosetest reports after the test suite completes. Only use --show_report when running tests locally because it pauses the test run.)

You can’t perform that action at this time.