Run the pylorax tests with 'make test'

Without a specific test directory it wasn't running the test(s), just
doing a coverage report.
This commit is contained in:
Brian C. Lane 2018-01-12 08:57:55 -08:00
parent 629d04dc68
commit b3eb4fa8a4
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,9 @@ check:
test:
@echo "*** Running tests ***"
PYTHONPATH=$(PYTHONPATH):./src/ $(PYTHON) -m nose -v --with-coverage --cover-erase --cover-branches \
--cover-package=pylorax --cover-package=bin --cover-package=sbin --cover-inclusive
--cover-package=pylorax --cover-package=bin --cover-package=sbin --cover-inclusive \
./tests/pylorax/
coverage3 report -m
[ -f "/usr/bin/coveralls" ] && [ -n "$(COVERALLS_REPO_TOKEN)" ] && coveralls || echo