mirror of
https://github.com/QualityInUse/lab-coverage-maksktl.git
synced 2026-08-05 12:05:28 +03:00
Compare commits
2 Commits
be15eb4d1b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| fcae514bbe | |||
| ae1f5f4b50 |
@@ -15,7 +15,7 @@ jobs:
|
||||
with:
|
||||
poetry-version: '1.7.1'
|
||||
- name: Install dependencies
|
||||
run: poetry install; poetry add pytest; poetry add pytest-mock; poetry add pytest-cov
|
||||
run: poetry install
|
||||
- name: Run pytest-cov
|
||||
run: poetry run pytest tests/ --cov=app --cov-branch --cov-report json:coverage.json
|
||||
- name: Check coverage threshold
|
||||
|
||||
Generated
+18
-1
@@ -150,7 +150,24 @@ pytest = ">=4.6"
|
||||
[package.extras]
|
||||
testing = ["fields", "hunter", "process-tests", "pytest-xdist", "six", "virtualenv"]
|
||||
|
||||
[[package]]
|
||||
name = "pytest-mock"
|
||||
version = "3.12.0"
|
||||
description = "Thin-wrapper around the mock package for easier use with pytest"
|
||||
optional = false
|
||||
python-versions = ">=3.8"
|
||||
files = [
|
||||
{file = "pytest-mock-3.12.0.tar.gz", hash = "sha256:31a40f038c22cad32287bb43932054451ff5583ff094bca6f675df2f8bc1a6e9"},
|
||||
{file = "pytest_mock-3.12.0-py3-none-any.whl", hash = "sha256:0972719a7263072da3a21c7f4773069bcc7486027d7e8e1f81d98a47e701bc4f"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
pytest = ">=5.0"
|
||||
|
||||
[package.extras]
|
||||
dev = ["pre-commit", "pytest-asyncio", "tox"]
|
||||
|
||||
[metadata]
|
||||
lock-version = "2.0"
|
||||
python-versions = "^3.11"
|
||||
content-hash = "db187dfd28c4026f23474af0361bedddda1aa56a3e159fd1f1de7cb3c22fe7fc"
|
||||
content-hash = "ada9e4fa22e33711fea72294ee864128af9e4dfa133bb2ef34fd254c88ff3738"
|
||||
|
||||
@@ -9,6 +9,7 @@ readme = "README.md"
|
||||
python = "^3.11"
|
||||
pytest = "^8.0.0"
|
||||
pytest-cov = "^4.1.0"
|
||||
pytest-mock = "^3.12.0"
|
||||
|
||||
|
||||
[build-system]
|
||||
|
||||
Reference in New Issue
Block a user