Update coverage to include dynamic context

The test_function dynamic_context adds context to the
coverage report so that the html includes details of which
tests covoer each line

This is useful when deterining what tests to extend when
there's missing coverage. It also helps in determining
iwhat testcases are covered.

Change-Id: Idafd6bf4c27d324bcbaee57ba168f2364246e4e9
Signed-Off-By: Emma Foley <efoley@redhat.com>
This commit is contained in:
Emma Foley
2026-04-22 20:31:05 +01:00
parent 1a2a2985fd
commit 82c84301b0
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -2,6 +2,7 @@
branch = True
source = ceilometer
omit = ceilometer/tests/*
dynamic_context = test_function
[report]
ignore_errors = True
+1 -1
View File
@@ -28,7 +28,7 @@ setenv =
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage html -d cover --show-contexts
coverage xml -o cover/coverage.xml
[testenv:pep8]