Skip to content

Commit

Permalink
chore: Update make targets for tests with coverage
Browse files Browse the repository at this point in the history
- Add: Make targets to run test categories with code coverage
  measurement and report.
- Change: Rename make target for running all tests with code coverage
  measurement and report.
- Change: Update use of these make targets in GitHub workflows.
  • Loading branch information
AnonymouX47 committed Jun 1, 2024
1 parent 55f2b0d commit c17591c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: make dev

- name: Run the tests and produce the .coverage file
run: make test-cov
run: make test-all-cov

- name: Coverage comment
id: coverage_comment
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,14 @@ test test-all:
$(pytest) $($@)

test-cov:
$(pytest) --cov --cov-append --cov-report=term --cov-report=html $(test)

test-all-cov:
$(pytest) --cov --cov-report=term --cov-report=html $(test-all)

test-%-cov:
$(pytest) --cov --cov-append --cov-report=term --cov-report=html $(test-$*)


# Building the Docs

Expand Down

0 comments on commit c17591c

Please sign in to comment.