0
0
Fork 0

How to run pytest

Bug528-TangJiao
Lan Hui 2024-04-09 16:13:05 +08:00
parent 083cbfd040
commit 4f91659713
1 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,9 @@ Install the following dependencies too:
- pip install -U selenium==3.141.0 - pip install -U selenium==3.141.0
- pip install -U urllib3==1.26.2 - pip install -U urllib3==1.26.2
Run the test using pytest as follows: pytest --html=pytest_report.html test_add_word.py
The above command will generate a HTML report file pytest_report.html after finishing executing test_add_word.py. Note: you need to install pytest-html package first: pip install pytest-html.
## TODO ## TODO