-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First enable coverage for child processes, so we get coverage report from the drenv tool and from script run by the drenv tool. This is a bit tricky, requiring enabling coverage for child process using a .pth file and using coverage parallel mode, combining output from multiple processes. With this change we report now all code running during the tests: $ make coverage python3 -m coverage report Name Stmts Miss Cover ----------------------------------------- drenv/__init__.py 77 48 38% drenv/__main__.py 109 23 79% drenv/clusteradm.py 41 41 0% drenv/commands.py 93 2 98% drenv/envfile.py 80 0 100% drenv/kubectl.py 31 0 100% ----------------------------------------- TOTAL 431 114 74% Part-of: #677 Signed-off-by: Nir Soffer <[email protected]>
- Loading branch information
Showing
6 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,5 @@ config/hub/bundle | |
test/drenv.egg-info/ | ||
test/**/__pycache__/ | ||
test/.coverage | ||
test/.coverage.* | ||
test/.vimrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[run] | ||
parallel = True | ||
source = drenv | ||
omit = drenv/*_test.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import coverage; coverage.process_startup() |