- Python 3.12 is installed
- git is installed
- Run following commands:
git clone https://github.com/algot/tvo_test_assessment
cd tvo_test_assessment
python3 -m venv .venv
.venv\Script\activate.bat
(Windows) orsource .venv/bin/activate
(MacOS/Linux)pip install -r requirements.txt
playwright install
cp .env.example .env
Run the following command:
pytest
It runs the test scripts in default configuration (Chromium, headless, 2 threads).
To run tests in headed mode add --headed
argument to the run command:
pytest --headed
To run tests in Firefox add --browser firefox
argument to the run command:
pytest --browser firefox
To enable reporting install Allure Report CLI according to the documentation
https://allurereport.org/docs/install/
To generate report run the command:
allure serve allure-results
It generates the report and opens it in the browser.