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

225 B

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 "

  1. Run all unit tests

run " python -m unittest discover -s ./tests/unit "