Commit 50903f2e authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add unit test coverage configuration

parent 07f8a7cb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
# Python
*.py[co]
dist/

# Testing
/results/
+33 −0
Original line number Diff line number Diff line
@@ -46,3 +46,36 @@ mypy_path = ["stubs"]

[tool.flakehell]
base = ".flakehell.toml"


[tool.coverage.run]
data_file = "results/coverage.db"
branch = true
source = [
	"behave_utils",
]

[tool.coverage.report]
precision = 2
skip_empty = true
exclude_lines = [
	"pragma: no cover",
	"if .*\\b__name__\\b",
	"if .*\\bTYPE_CHECKING\\b",
	"class .*(.*\\bProtocol\\b.*):",
	"@overload",
]
partial_branches = [
	"pragma: no branch",
	"if .*\\b__debug__\\b",
]

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

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

[tool.coverage.html]
directory = "results/coverage.html.d"
show_contexts = true