pre-commit-hooks/pre_commit_hooks/loaderon_hooks/Documentation/automatic_testing.txt
Alvaro Andrés Rodríguez Scelza 8f728441d8 added unit testing good practice
2019-06-04 10:56:57 -03:00

13 lines
No EOL
618 B
Text

In order to run automatic tests and know test coverage, following commands are suggested (notice that will run
ALL pre_commit_hooks tests, not only Loaderon's):
coverage erase
coverage run --source pre_commit_hooks -m pytest
coverage report --fail-under 100
#######################################################################################################################
Each automatic test method should have three stages:
-Initialization: declaring and specification of all necessary variables and data for the test.
-Execution: run all to-be-tested procedures.
-Verification: checking of obtained results.