microblog/tests/unit/how-to-run-tests.md

11 lines
225 B
Markdown

How to run unit tests
unit tests must follow the "test*.py" regex to be picked up
1. Individual tests
run " python .\tests\unit\test_example.py "
2. Run all unit tests
run " python -m unittest discover -s ./tests/unit "