Simple Python + Pytest + Selenium + Allure automation test project
- Created some tests
- Created tests configuration
- Enabled allure reporter
To integrate PyCharm with PyTest
Settings ➯ Tools ➯ Python Integrated Tools ➯ Default test runner:pytest
To run marked tests
For example: you have tests @pytest.mark.uitest that execute them you need to:
pytest -m uitest
To rerun tests
For rerun failed tests:
pytest --reruns 2
To run tests in paralell
pytest /tests -n 3
To generate HTML report:
pytest --html=report.html
To generate allure report
pytest --alluredir ./my-allure
allure generate ./my-allure