Skip to content

Commit a71f2da

Browse files
committed
speed up testing when coverage isn't needed
1 parent c2dc5e0 commit a71f2da

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ pylint_report.txt: ${PYSOURCES}
114114
diff_pylint_report: pylint_report.txt
115115
diff-quality --violations=pylint pylint_report.txt
116116

117-
.coverage: tests
117+
.coverage: testcov
118118

119119
coverage: .coverage
120120
coverage report
@@ -135,7 +135,11 @@ diff-cover.html: coverage-gcovr.xml coverage.xml
135135
--html-report diff-cover.html
136136

137137
## test : run the ${MODULE} test suite
138-
test: $(PYSOURCES)
138+
test: $(pysources)
139+
python setup.py test
140+
141+
## testcov : run the ${MODULE} test suite and collect coverage
142+
testcov: $(pysources)
139143
python setup.py test --addopts "--cov cwltool"
140144

141145
sloccount.sc: ${PYSOURCES} Makefile

0 commit comments

Comments
 (0)