-
Notifications
You must be signed in to change notification settings - Fork 8
Tests
Gustavo Rosa edited this page Mar 7, 2019
·
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 interesting addition to the solo pytest is the coverage module. Despite offering the same outputs from pytest, it will also offer a report that documents how much percent of the code is covered by the tests. Note that we, from NALP, usually uses this method.
coverage run -m pytest tests/
coverage report -m
nalp
© Copyright 2021 – Licensed by Apache 2.0