Skip to content

Commit

Permalink
add dev advice on running code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ohnorobo committed Nov 2, 2021
1 parent 4f125ad commit b934f2a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ env/
**/*egg-info/*
pipeline/assets/GeoLite2*.mmdb
.vscode/
**/*.pyc
**/*.pyc
.coverage
10 changes: 10 additions & 0 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ command

python -m unittest pipeline.manual_e2e_test.PipelineManualE2eTest

To view unit test code coverage install `coverage` and run

python -m coverage run --source="pipeline/" -m unittest
python -m coverage report -m --omit="*test*"

To view E2E test code coverage run

python -m coverage run --source="pipeline/" -m unittest pipeline.manual_e2e_test.PipelineManualE2eTest
python -m coverage report -m --omit="*test*"

## Running development pipelines

To test changes before merging them into production it helps to run development
Expand Down

0 comments on commit b934f2a

Please sign in to comment.