Skip to content

Commit c833f42

Browse files
committed
Update unit test invocation in the README
1 parent b74c927 commit c833f42

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,13 @@ For more information see the [Code of Conduct FAQ](https://opensource.microsoft.
165165
contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
166166

167167
## Unit tests
168-
Run unit tests from the project root by running:
168+
Run unit tests from the project root either with the built-in `unittest` module:
169169

170170
python -m unittest discover
171+
172+
Or by using `pytests`, which can produce reports both for unit test success and for code coverage, by
173+
using the following invocation:
174+
175+
pip install pytest
176+
pip install pytest-cov
177+
pytest tests --doctest-modules --junitxml=junit/test-results.xml --cov=callgraph --cov-report=xml --cov-report=html

0 commit comments

Comments
 (0)