Skip to content

Commit 342f1bd

Browse files
committed
Add pytest-cov to test requirements and update pytest config
1 parent dd8bf89 commit 342f1bd

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ test-lambda:
5454
clean:
5555
rm -rf packages/cdk/coverage
5656
rm -rf packages/cdk/lib
57+
rm -rf packages/slackBotFunction/coverage
58+
rm -rf packages/slackBotFunction/.coverage
59+
rm -rf packages/createIndexFunction/coverage
60+
rm -rf packages/createIndexFunction/.coverage
5761
rm -rf cdk.out
5862
rm -rf .build
5963

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[tool:pytest]
1+
[pytest]
22
testpaths = tests
33
python_files = test_*.py
44
python_functions = test_*
5-
addopts = -v --tb=short
5+
addopts = -v --tb=short --cov=. --cov-report=xml:coverage/coverage.xml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pytest==8.3.3
22
pytest-mock==3.14.0
3+
pytest-cov==6.0.0
34
moto[ssm]==5.0.21
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[tool:pytest]
1+
[pytest]
22
testpaths = tests
33
python_files = test_*.py
44
python_functions = test_*
5-
addopts = -v --tb=short
5+
addopts = -v --tb=short --cov=. --cov-report=xml:coverage/coverage.xml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pytest==8.3.3
22
pytest-mock==3.14.0
3+
pytest-cov==6.0.0
34
moto[ssm]==5.0.21

0 commit comments

Comments
 (0)