Compare commits

..

3 Commits

Author SHA1 Message Date
Lan Hui 4f91659713 How to run pytest 2024-04-09 16:13:05 +08:00
Lan Hui 083cbfd040 Ignore app/test/assets 2024-04-09 16:01:44 +08:00
Lan Hui 0dc253bc19 Ignore pytest_report.html 2024-04-09 15:58:47 +08:00
2 changed files with 5 additions and 0 deletions

2
.gitignore vendored
View File

@ -16,4 +16,6 @@ app/static/donate-the-author-hidden.jpg
app/model/__pycache__/
app/test/__pycache__/
app/test/.pytest_cache/
app/test/pytest_report.html
app/test/assets
app/log.txt

View File

@ -146,6 +146,9 @@ Install the following dependencies too:
- pip install -U selenium==3.141.0
- 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