Commit 880a6187 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add test coverage context plugin

parent cc155fbf
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ Unit Tests:
  extends: [.python]
  needs: [Pin]
  script:
  - pip install -r requirements.txt -e . coverage[toml] nose
  - pip install -r requirements.txt -e .[tests] nose
  - coverage run -m nose tests
    --verbose
    --with-xunit --xunit-file=results/xunit.xml
+10 −1
Original line number Diff line number Diff line
@@ -22,6 +22,12 @@ classifiers = [
	"Topic :: Software Development :: Quality Assurance",
]

[project.optional-dependencies]
tests = [
	"coverage[toml]",
	"kodo.plugins.cover_test_context @ https://code.kodo.org.uk/dom/cover-plugin-test-context/-/archive/main/cover-plugin-test-context-main.zip",
]

[project.urls]
Repository = "https://code.kodo.org.uk/dom/project-templates"

@@ -53,7 +59,9 @@ warn_unreachable = true
data_file = "results/coverage.db"
branch = true
source = ["project_templates"]
dynamic_context = "test_function"
plugins = [
	"kodo.plugins.cover_test_context",
]

[tool.coverage.report]
precision = 2
@@ -72,6 +80,7 @@ partial_branches = [

[tool.coverage.json]
output = "results/coverage.json"
show_contexts = true

[tool.coverage.xml]
output = "results/coverage.xml"