Skip to content

Commit ebf39b7

Browse files
Refactor test workflow to improve coverage reporting and streamline app.py test execution
1 parent eac9ec0 commit ebf39b7

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,17 @@ jobs:
5353
- name: Run app.py tests separately (requires isolation due to mocking)
5454
if: env.skip_tests == 'false'
5555
run: |
56-
python -m pytest src/tests/backend/test_app.py --cov=backend.app --cov-report=term --cov-config=.coveragerc
56+
python -m pytest src/tests/backend/test_app.py --cov=backend.app --cov-report= --cov-config=.coveragerc
5757
58-
- name: Run tests with coverage
58+
- name: Run all other backend tests with coverage
5959
if: env.skip_tests == 'false'
6060
run: |
61-
python -m pytest src/tests/backend --cov=backend --cov-report=term --cov-config=.coveragerc --ignore=src/tests/backend/test_app.py
61+
python -m pytest src/tests/backend --cov=backend --cov-append --cov-report= --cov-config=.coveragerc --ignore=src/tests/backend/test_app.py
62+
63+
- name: Generate combined coverage report
64+
if: env.skip_tests == 'false'
65+
run: |
66+
python -m coverage report --rcfile=.coveragerc
6267
6368
# - name: Run tests with coverage
6469
# if: env.skip_tests == 'false'

0 commit comments

Comments
 (0)