-
Notifications
You must be signed in to change notification settings - Fork 3
API: Running tests
Samantha Ixer edited this page May 21, 2019
·
2 revisions
Because the feature tests require the API to be running and available, you should create the environment and run the API (python3 app.py) before you run the tests.
Within a built VM, you can run the tests in the following way:
-
pytest- this will run all of the tests -
pytest filename.py(e.g.pytest test_controller.py) - this will run just that specific file -
pytest -r A- this will run all of the tests with a nice summary of information at the end - this is useful to see exactly which tests pass or fail and to also see the output of anyprintstatements from within the tests -
pytest -r A --cov-report term-missing --cov- this will also include a test coverage report