Skip to content

Elvorob/Saucedemo

Repository files navigation

GitHub Actions saucedemo

SAUCEDEMO

[Web-Site]👉 [OUR]👉

Table of contents


Как работать с репозиторием?:

👉Ссылка на инструкцию

Pytest INFO: pytest

Do not forget check your tests with black and flake8 befor pushing

pytest flags

-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-xdist

Запускает несколько тестов одновременно
pytest -n auto OR pytest -n 5( any number)

⬆️(back to Menu)


POETRY

WEB с дополнительной информацией ·poetry

Running all tests in the project with poetry:

poetry run pytest 

Running test by name with poetry:

poetry run pytest test_name.py 

Shou setups and PASSED/FAILED^

poetry run pytest test_name.py --setup-show -sv 

⬆️(back to Menu)


PYTHON_HTML_REPORT

WEB с дополнительной информацией ·pytest-html

Installation:

pip install pytest-html

How add python-html reports:

poetry add pytest -html

Start:

poetry run pytest <your_test_name.py> --html=report/report.html --self-contained-html
right click to file > open in browser or in finder
report.html - the name of the file, it can be anything

⬆️(back to Menu)


ALLURE

WEB с дополнительной информацией ·WEB-SITE

Installation:

pip install allure-pytest
pip install allure-combine

1. Create allure:

Соберёт отчеты по всем тестам:
pytest --alluredir=allure
Соберёт отчет по указанному тесту:
pytest имя теста --alluredir=allure

2. Generates a report and opens it in a browser::

allure serve allure

3. Report generated for allure-report:

allure generate <директория где лежит отчет>

4. Create single HTML report:

-создает файл с отчетом complete.html(можно делиться с другими)

allure-combine ./allure-report

-delete sinon.js и server.js

Open allure report:

allure open <directory>  

Clean allure report:

allure report clean 

Change directory:

allure generate old directory-o new directory

Useful links

👉Установка Black

👉Установка Flake8

👉About SELENIUM

👉About SELENIUM.2

👉About Python

👉Allure-combine

⬆️ (back to Menu)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages