Reviving the unit tests
This commit also lays the ground work:
- coverage reports from unit tests
- enabling per commit tests
Change-Id: I1115600c3f4b213a73197b40750dd29f7c17aef1
diff --git a/Makefile b/Makefile
index 4abf9b1..20cb119 100644
--- a/Makefile
+++ b/Makefile
@@ -156,7 +156,13 @@
utest: venv protos
@ echo "Executing all unit tests"
. ${VENVDIR}/bin/activate && \
- for d in $$(find ./tests/utests -type d -depth 1); do echo $$d:; nosetests -v $$d; done
+ for d in $$(find ./tests/utests -depth -type d); do echo $$d:; nosetests $$d; done
+
+utest-with-coverage: venv protos
+ @ echo "Executing all unit tests and producing coverage results"
+ . ${VENVDIR}/bin/activate && \
+ for d in $$(find ./tests/utests -depth -type d); do echo $$d:; \
+ nosetests --with-xcoverage --with-xunit --cover-package=voltha,common,ofagent,chameleon $$d; done
itest: venv run-as-root-tests
@ echo "Executing all integration tests"