From 5751cebaa25d6e78ad2ccee8bfe1b4d936d63f48 Mon Sep 17 00:00:00 2001 From: chenke Date: Tue, 29 Oct 2019 22:04:08 +0800 Subject: [PATCH] Exclude cyborg tests dir in UT cover report We don't care about coverage of actual test code, So exclude cyborg/tests dir. Change-Id: I534f652c098ed91afb8f52cfc6bb78268a4d5f21 --- .coveragerc | 12 ++++++++++++ .gitignore | 1 - .stestr.conf | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..9663a914 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,12 @@ +[run] +branch = True +source = cyborg +omit = + cyborg/tests/* + cyborg/hacking/* + +[report] +ignore_errors = True +exclude_lines = + @abc.abstract + raise NotImplementedError diff --git a/.gitignore b/.gitignore index e5811ebf..80de8ab7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ *.tox *.retry .coverage -.coveragerc .coverage.* .venv .stestr/ diff --git a/.stestr.conf b/.stestr.conf index 3aeee013..2ab877bb 100644 --- a/.stestr.conf +++ b/.stestr.conf @@ -1,3 +1,3 @@ [DEFAULT] -test_path=./ +test_path=./cyborg/tests top_dir=./