File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 11* .pyc
22. * .swp
33
4+ .coverage
5+ tests /coverage-report.log
6+
47ChangeLog
58
69po /* .gmo
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ VERSION=$(shell awk '/Version:/ { print $$2 }' $(SPECNAME).spec)
2121RELEASE =$(shell awk '/Release:/ { print $$2 }' $(SPECNAME ) .spec | sed -e 's|% .* $$||g')
2222TAG =$(PKGNAME ) -$(VERSION )
2323
24- PYTHON =python3
24+ PYTHON? =python3
25+ COVERAGE? =coverage3
2526
2627# Arguments used for setup.py call for creating archive
2728BUILD_ARGS ?= sdist bdist_wheel
5253 @echo " *** Running unittests ***"
5354 PYTHONPATH=. $(PYTHON ) -m unittest discover -v -s tests/ -p ' *_test.py'
5455
56+ .PHONY : coverage
57+ coverage :
58+ @echo " *** Running unittests with coverage ***"
59+ PYTHONPATH=. $(COVERAGE ) run --branch -m unittest discover -v -s tests/ -p ' *_test.py'
60+ $(COVERAGE ) report -m --include=" simpleline/*" | tee tests/coverage-report.log
61+
5562.PHONY : check
5663check :
5764 @echo " *** Running pocketlint ***"
You can’t perform that action at this time.
0 commit comments