- Как работать с репозиторием?
- Pytest INFO
- Poetry
- Python html report
- Allure
- Creat Allure single HTML file builder
- Useful links
Do not forget check your tests with black and flake8 befor pushing
-s - prints desired output (pytest -s test_file_name)
-v - shows test process' percentage (pytest -v test_file_name)
-m - allows to run tests with specific marks (pytest -m mark_title test_file_name)
pytest -n auto OR pytest -n 5( any number)
⬆️(back to Menu)
poetry run pytest
poetry run pytest test_name.py
poetry run pytest test_name.py --setup-show -sv
⬆️(back to Menu)
pip install pytest-html
poetry add pytest -html
poetry run pytest <your_test_name.py> --html=report/report.html --self-contained-html
⬆️(back to Menu)
pip install allure-pytest
pip install allure-combine
pytest --alluredir=allure
pytest имя теста --alluredir=allure
allure serve allure
allure generate <директория где лежит отчет>
-создает файл с отчетом complete.html
(можно делиться с другими)
allure-combine ./allure-report
-delete sinon.js
и server.js
allure open <directory>
allure report clean
allure generate old directory-o new directory
⬆️ (back to Menu)