Skip to content

Commit

Permalink
include integration tests in coverage report
Browse files Browse the repository at this point in the history
Note that running these via the make target does not work, as, for
some unknown reason, it does not find the `fs` python package
installed.
  • Loading branch information
countvajhula committed Oct 9, 2024
1 parent 90428f1 commit 07b004c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ jobs:
- name: Install dependencies
run: make build-for-test
- name: Report coverage
run: make cover-coveralls
run:
coverage run --source oldabe -m pytest
coverage report -m
coverage html
open coverage_html_report/index.html
lint:
runs-on: ubuntu-latest
name: Lint the package
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ debug: test-debug
tldr: test-tldr

coverage: clean-test
coverage run --source $(PACKAGE-NAME) setup.py test --addopts $(UNIT_TESTS_PATH)
coverage run --source $(PACKAGE-NAME) -m pytest
coverage report -m
coverage html
open coverage_html_report/index.html

cover-coveralls: clean-test
coverage run --source $(PACKAGE-NAME) setup.py test --addopts $(UNIT_TESTS_PATH)
coverage run --source $(PACKAGE-NAME) -m pytest
coveralls

sdist: clean
Expand Down

0 comments on commit 07b004c

Please sign in to comment.