- install python ^3.10
- install poetry
- Install dependencies
$poetry install
-
Run all tests
$poetry run pytest -
Run only specific test
$poetry run pytest tests/<test_filename> -
Run only specific function from the test
$poetry run pytest -k '<part_of_test_fn_name>' -
Run only smoke tests
$poetry run pytest -m smoke -
Run only regression tests
$poetry run pytest -m regression
target: https://www.saucedemo.com/