Skip to content

Commit ac65697

Browse files
committed
Try combining coverage of unit and e2e tests
1 parent 94f6210 commit ac65697

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.circleci/config.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,25 @@ jobs:
4444

4545
- run:
4646
name: Unit Tests
47-
command: poetry run pytest --junitxml=test-reports/pytest/results.xml --cov=openapi_python_client tests
47+
command: |
48+
poetry run pytest --junitxml=test-reports/pytest/results.xml --cov=openapi_python_client tests
49+
poetry run coverage xml
50+
51+
- codecov/upload:
52+
file: coverage.xml
4853

4954
- run:
5055
name: End to End Test
51-
command: poetry run pytest end_to_end_tests
56+
command: |
57+
poetry run pytest --junitxml=test-reports/pytest/results.xml --cov=openapi_python_client end_to_end_tests
58+
poetry run coverage xml
5259
53-
- run:
54-
name: Generate Coverage Report
55-
command: poetry run coverage xml
60+
- codecov/upload:
61+
file: coverage.xml
5662

5763
- store_test_results:
5864
path: test-reports
59-
- codecov/upload:
60-
file: coverage.xml
65+
6166
- run:
6267
command: poetry run pip uninstall openapi-python-client -y
6368
name: Uninstall Package

0 commit comments

Comments
 (0)