summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMoshe <moshehoa@amdocs.com>2018-03-25 17:00:40 +0300
committerMoshe <moshehoa@amdocs.com>2018-03-25 18:07:32 +0300
commitea90f9ba9d0e317dfc5521dda9946844b7336abd (patch)
tree24b8d699b7d8166f9b8597d1f72c4557db3906bf /tools
parent583448a180e36b5b406fa9542392ea0400914700 (diff)
Add unit tests and handle coverage
Issue-ID: VNFSDK-183 Change-Id: I228576f5c06b371164bcd653d23cf169098436a8 Signed-off-by: Moshe <moshehoa@amdocs.com> handle coverage Issue-ID: VNFSDK-183 Change-Id: I3d78293fdf5cb8bc57caa4078ab8fa5baa429a0d Signed-off-by: Moshe <moshehoa@amdocs.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/cover.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/cover.sh b/tools/cover.sh
index 8acfb56..d8170ba 100644
--- a/tools/cover.sh
+++ b/tools/cover.sh
@@ -44,11 +44,12 @@ run_coverage_test() {
# Temporarily run tests from two directories, until all tests have moved
coverage run -p -m unittest discover ./tests/unit
- coverage run -p -m unittest discover ./vnftest/tests/unit
+ coverage run -p -m unittest discover ./vnftest/tests/unit/core
+ coverage run -p -m unittest discover ./vnftest/tests/unit/onap
coverage combine
# Temporarily omit vnftest/tests from the report
- coverage report --omit=vnftest/tests/*/* > ${baseline_report}
+ coverage report > ${baseline_report}
coverage erase
# debug awk
@@ -71,7 +72,8 @@ run_coverage_test() {
# Temporarily run tests from two directories, until all tests have moved
coverage run -p -m unittest discover ./tests/unit
- coverage run -p -m unittest discover ./vnftest/tests/unit
+ coverage run -p -m unittest discover ./vnftest/tests/unit/core
+ coverage run -p -m unittest discover ./vnftest/tests/unit/onap
coverage combine
# Temporarily omit vnftest/tests from the report