Sandbox to start with Simple tests to be applied to a tpical web site, e.g. finding broken links, etc.
- Edit env.py to have the URL and environment name
- Run:
pytest test_samples.py
To generate htm report (that can be just shared in single-file), run failed tests (those previously failed) first
pytest --ff .\test_sample.py --html=your_report_filename.htm --self-contained-html
to explicitly cleanup previous run results
pytest --lf .\test_sample.py --cache-clear --html=your_report_file_lf.htm
to only rerun failed tests (those failed in previous run)
pytest --lf .\test_sample.py --html=your_report_file_lf_rerun.htm