Skip to content

Commit c16883e

Browse files
authored
chore: update test config
Signed-off-by: Todd Baert <[email protected]>
1 parent 93fee85 commit c16883e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

hooks/openfeature-hooks-opentelemetry/pyproject.toml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,23 @@ Homepage = "https://github.com/open-feature/python-sdk-contrib"
2727

2828
[tool.hatch]
2929

30-
[tool.hatch.envs.default]
30+
[tool.hatch.envs.hatch-test]
3131
dependencies = [
3232
"coverage[toml]>=6.5",
3333
"pytest",
3434
]
35+
pre-install-commands = [
36+
"hatch build",
37+
]
3538

36-
[tool.hatch.envs.default.scripts]
37-
test = "pytest {args:tests}"
38-
test-cov = "coverage run -m pytest {args:tests}"
39+
[tool.hatch.envs.hatch-test.scripts]
40+
run = "pytest {args:tests}"
41+
run-cov = "coverage run -m pytest {args:tests}"
42+
cov-combine = "coverage combine"
3943
cov-report = [
4044
"coverage xml",
45+
"coverage html",
46+
"coverage report",
4147
]
4248
cov = [
4349
"test-cov",

0 commit comments

Comments
 (0)