Skip to content

Commit

Permalink
Makefile: use pytest for code coverage
Browse files Browse the repository at this point in the history
The command failed with:
coverage run -m unittest discover

----------------------------------------------------------------------
Ran 0 tests in 0.000s

NO TESTS RAN
.../.virtualenvs/pyscard/lib/python3.12/site-packages/coverage/inorout.py:504: CoverageWarning: Module smartcard was never imported. (module-not-imported)
  self.warn(f"Module {pkg} was never imported.", slug="module-not-imported")
.../.virtualenvs/pyscard/lib/python3.12/site-packages/coverage/control.py:894: CoverageWarning: No data was collected. (no-data-collected)
  self._warn("No data was collected.", slug="no-data-collected")
  • Loading branch information
LudovicRousseau committed Oct 2, 2024
1 parent 62944bc commit ceb7141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test:

coverage:
$(COVERAGE) erase
$(COVERAGE) run -m unittest discover
$(COVERAGE) run -m pytest
$(COVERAGE) combine
$(COVERAGE) report
$(COVERAGE) html
Expand Down

0 comments on commit ceb7141

Please sign in to comment.