File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ coverage:
39
39
github_checks :
40
40
annotations : true
41
41
flags :
42
+ pythonrepo :
43
+ paths :
44
+ - " pythonrepo/"
42
45
tests :
43
46
paths :
44
- - tests
47
+ - " tests/"
48
+ - " !pythonrepo/"
Original file line number Diff line number Diff line change 2
2
concurrency = multiprocessing
3
3
parallel = True
4
4
sigterm = True
5
- branch = True
5
+ # enable if you want to consider branches in coverage
6
+ # branch = True
6
7
7
8
[report]
8
- include = pythonrepo/*,tests/*
9
+ include = pythonrepo/*
9
10
# Regexes for lines to exclude from consideration
10
11
exclude_lines =
11
12
# Have to re-enable the standard pragma
@@ -45,3 +46,11 @@ partial_branches =
45
46
if __name__ in u' __main__' :
46
47
if __name__ in u" __main__" :
47
48
if __name__ in ' __main__' :
49
+ if __sys_path__ not in sys.path:
50
+ # don't complain about sys.modules
51
+ sys.modules
52
+ not in sys.modules:
53
+ if context.__name__ is None:
54
+ if ' os' not in sys.modules:
55
+ if ' os.path' not in sys.modules:
56
+ if ' argparse' not in sys.modules:
Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ just-test: cleanup
287
287
test : test-reqs just-test
288
288
$(QUIET )$(DO_FAIL ) ;
289
289
$(QUIET )$(COVERAGE ) combine 2> $(ERROR_LOG_PATH ) || : ;
290
- $(QUIET )$(COVERAGE ) report -m --include=* 2> $(ERROR_LOG_PATH ) || : ;
290
+ $(QUIET )$(COVERAGE ) report -m --include=pythonrepo/ * 2> $(ERROR_LOG_PATH ) || : ;
291
291
$(QUIET )$(CC_TOOL ) $(CC_TOOL_ARGS ) 2> $(ERROR_LOG_PATH ) || : ;
292
292
$(QUIET )$(ECHO ) " $@ : Done."
293
293
@@ -384,6 +384,7 @@ cleanup-src-dir: cleanup-dev-backups cleanup-mac-dir-store
384
384
cleanup : cleanup-tests cleanup-pythonrepo cleanup-pythonrepo-eggs cleanup-src-dir
385
385
$(QUIET )$(RM ) ./.coverage 2> $(ERROR_LOG_PATH ) || true
386
386
$(QUIET )$(RM ) ./coverage* .xml 2> $(ERROR_LOG_PATH ) || true
387
+ $(QUIET )$(RM ) ./.coverage.* 2> $(ERROR_LOG_PATH ) || true
387
388
$(QUIET )$(RM ) ./sitecustomize.py 2> $(ERROR_LOG_PATH ) || true
388
389
$(QUIET )$(RMDIR ) ./test-reports/ 2> $(ERROR_LOG_PATH ) || true
389
390
$(QUIET )$(WAIT ) ;
You can’t perform that action at this time.
0 commit comments