Commit 0af56c438fe688a18d354855357ba7542eddec25
Committed by
Sergio Oliveira
1 parent
490a4b86
Exists in
master
and in
39 other branches
Use of coverage.
Signed-off-by: Matheus Fernandes <matheus.fernandes@gmail.com> Signed-off-by: Sergio Oliveira <sergio@tracy.com.br>
Showing
3 changed files
with
24 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,21 @@ |
1 | +[run] | |
2 | +omit = | |
3 | + */migrations/* | |
4 | + */tests/* | |
5 | + test_*.py | |
6 | + */__init__.py | |
7 | + */urls.py | |
8 | + */settings.py | |
9 | + */tests.py | |
10 | +source = | |
11 | + colab/ | |
12 | + | |
13 | +[report] | |
14 | +precision = 2 | |
15 | +show_missing = True | |
16 | + | |
17 | +[html] | |
18 | +directory = coverage_report/ | |
19 | +title = Colab test coverage | |
20 | + | |
21 | + | ... | ... |
colab/tests/settings.py
runtests.py
1 | 1 | #!/usr/bin/env python |
2 | 2 | |
3 | 3 | import os |
4 | +import sys | |
4 | 5 | |
5 | 6 | os.environ['DJANGO_SETTINGS_MODULE'] = 'colab.tests.settings' |
6 | 7 | os.environ['COVERAGE_PROCESS_START'] = '.coveragerc' |
... | ... | @@ -22,5 +23,6 @@ def runtests(): |
22 | 23 | |
23 | 24 | |
24 | 25 | if __name__ == '__main__': |
26 | + os.remove('.coverage') | |
25 | 27 | coverage.process_startup() |
26 | 28 | runtests() | ... | ... |