Skip to content

Commit 55b023b

Browse files
committed
Setup coverage
1 parent bc3ea09 commit 55b023b

4 files changed

Lines changed: 112 additions & 4 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ coverage
55
htmlcov
66
.vscode
77
.history
8+
.coverage
9+

python/poetry.lock

Lines changed: 101 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ mypy = "^1.15.0"
4646
autohooks-plugin-mypy = "^23.10.0"
4747
autohooks-plugin-ruff = "^25.2.0"
4848
autohooks = "^25.2.0"
49-
pyyaml = "^6.0.2"
5049

5150
[tool.poetry.group.test.dependencies]
5251
pytest = "^8.3.4"
52+
pytest-cov = "^6.0.0"
53+
pyyaml = "^6.0.2"
5354

5455
[build-system]
5556
requires = ["poetry-core>=2.0.0,<3.0.0"]
@@ -70,3 +71,9 @@ check_untyped_defs = true
7071
[tool.autohooks]
7172
mode = "poetry"
7273
pre-commit = ["autohooks.plugins.mypy", "autohooks.plugins.ruff.format", "autohooks.plugins.ruff.check"]
74+
75+
76+
[tool.pytest.ini_options]
77+
addopts = "-ra --color=yes --cov fpml --cov-report html --doctest-modules"
78+
log_cli = true
79+
log_cli_level = "WARNING"

ts/server/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"**/*.(t|j)s"
6767
],
6868
"coverageDirectory": "../coverage",
69+
"coverageReporters": ["text", "html"],
6970
"testEnvironment": "node"
7071
}
7172
}

0 commit comments

Comments
 (0)