mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 19:46:54 +00:00
added unit testing good practice
This commit is contained in:
parent
5462949e51
commit
8f728441d8
1 changed files with 7 additions and 0 deletions
|
|
@ -4,3 +4,10 @@ ALL pre_commit_hooks tests, not only Loaderon's):
|
||||||
coverage erase
|
coverage erase
|
||||||
coverage run --source pre_commit_hooks -m pytest
|
coverage run --source pre_commit_hooks -m pytest
|
||||||
coverage report --fail-under 100
|
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.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue