Skip to content

Commit 01702aa

Browse files
committed
Add basic env var provider
Signed-off-by: christian.lutnik <[email protected]>
1 parent 3fb84e8 commit 01702aa

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,6 @@ docs/_build/
5454

5555
# vscode
5656
.vscode/
57+
58+
# test coverage
59+
/providers/openfeature-provider-env-var/tests-results.xml

providers/openfeature-provider-env-var/pyproject.toml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,18 @@ omit = [
5858
testpaths = ["tests"]
5959
python_files = "test_*.py"
6060
python_functions = "test_*"
61-
addopts = "--cov --cov-report xml --cov-report html --junit-xml=tests-results.xml"
61+
addopts = "--cov --cov-report xml --cov-report html --junit-xml=tests-results.xml"
62+
63+
[tool.hatch.envs.hatch-test.scripts]
64+
run = "uv run pytest"
65+
run-cov = "uv run pytest --cov --cov-report xml --cov-report html --junit-xml=tests-results.xml"
66+
cov-combine = "coverage combine"
67+
cov-report = [
68+
"coverage xml",
69+
"coverage html",
70+
"coverage report",
71+
]
72+
cov = [
73+
"coverage.xml",
74+
"tests-results.xml",
75+
]

0 commit comments

Comments
 (0)