Skip to content

Commit

Permalink
Merge pull request #3 from Appsilon/code-coverage-addition
Browse files Browse the repository at this point in the history
feat: add code coverage
  • Loading branch information
pstorozenko authored Mar 13, 2024
2 parents 2bbeb19 + 20d0d9f commit 4a2ebd1
Show file tree
Hide file tree
Showing 5 changed files with 174 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"ms-toolsai.jupyter",
"charliermarsh.ruff",
"streetsidesoftware.code-spell-checker",
"tamasfe.even-better-toml"
"tamasfe.even-better-toml",
"ryanluker.vscode-coverage-gutters"
]
}
}
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
__pycache__

# Code coverage
lcov.info
.coverage

# Results of playwright tests with tracing
test-results/

Expand Down
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}
154 changes: 153 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@ authors = ["Piotr Pasza Storozenko <[email protected]>"]
readme = "README.md"
packages = [{include = "pyshiny_template"}]

[tool.coverage.run]
source = ["pyshiny_template"]

[tool.poetry.dependencies]
python = "^3.10"
shiny = "^0.8.1"
pandas = "^2.2.1"
rich = "^13.7.1"
loguru = "^0.7.2"
pytest-watch = "^4.2.0"
pytest-cov = "^4.1.0"

[tool.poetry.group.dev.dependencies]
icecream = "^2.1.3"
Expand All @@ -29,3 +34,6 @@ tenacity = "^8.2.3"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.pytest.ini_options]
addopts = "--cov . --cov-report=lcov:lcov.info --cov-report=term"

0 comments on commit 4a2ebd1

Please sign in to comment.