-
Notifications
You must be signed in to change notification settings - Fork 1
Testing
Gustavo Rosa edited this page Apr 7, 2021
·
1 revision
If you ever wanted to check in-depth our code, it is also interesting to run some tests. This will allow you to check whether everything is right on track or not.
The first method that we offer is running solo the pytest command. This will realize all the implemented tests and return an output declaring whether they passed or failed.
pytest tests/
An exciting addition to the solo pytest is the coverage module. Despite offering the same outputs from the pytest, it will also offer a report that documents how much the tests cover percent of the code. Note that we, from Statys, usually use this method.
coverage run -m pytest tests/
coverage report -m
statys
© Copyright 2021 – Licensed by Apache 2.0