From 4f91659713fa7ee5aa83aa1f34f904307ae382c5 Mon Sep 17 00:00:00 2001 From: Lan Hui <1348141770@qq.com> Date: Tue, 9 Apr 2024 16:13:05 +0800 Subject: [PATCH] How to run pytest --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 03a130a..bbe4bb4 100644 --- a/README.md +++ b/README.md @@ -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