Skip to content

Commit

Permalink
add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
RealDyllon committed Feb 23, 2023
1 parent 6f85409 commit 5268693
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
omit = **/__init__.py
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ node_modules/
out/
docs_server/swagger/openapi.json

.env.*
.env.*
/.coverage
/.pytest_cache/
/coverage_html/
/coverage.lcov
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"offline": "poetry run serverless offline start --stage dev --noPrependStageInUrl",
"test": "concurrently -n pytest --kill-others --success first \"npm run test:py\"",
"test:watch": "concurrently -n pytest --kill-others \"npm run test:py:watch\"",
"test:py": "poetry run pytest --import-mode importlib -vv",
"test:py": "poetry run pytest --cov-config=.coveragerc --import-mode importlib -vv ",
"test:py:watch": "poetry run pytest-watch -- --import-mode importlib -vv",
"lint": "poetry run pylint --fail-under=8 be",
"lint:fix": "poetry run black be/",
Expand Down
90 changes: 88 additions & 2 deletions poetry.lock

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

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ python-dotenv = "^0.20.0"
stripe = "^4.1.0"
botocore = "^1.27.70"
pytest-mock = "^3.10.0"
pytest-cov = "^4.0.0"

[tool.poetry.dev-dependencies]
black = "^22.3.0"
Expand Down
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ env_files =
.env
.env.test
.env.local
addopts = --cov=be --cov-report lcov --cov-report html:coverage_html

[pytest-watch]
beforerun = ./utils/setup_tests.py

0 comments on commit 5268693

Please sign in to comment.