Skip to content

Commit

Permalink
TST/MNT: tidy up pytest invocation & use htmlcov
Browse files Browse the repository at this point in the history
  • Loading branch information
fedarko committed Mar 22, 2023
1 parent 540d96d commit 12af3b5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@

.PHONY: pytest jstest test pystylecheck jsstylecheck stylecheck pystyle jsstyle style demo

PYTEST_COMMAND = python3 -B -m pytest metagenomescope/tests/ --cov-report xml --cov-report term --cov metagenomescope
PYLOCS = metagenomescope/ setup.py
JSLOCS = metagenomescope/support_files/js/*.js metagenomescope/tests/js_tests/*.js docs/js/extra_functionality.js .jshintrc
HTMLCSSLOCS = metagenomescope/support_files/index.html metagenomescope/tests/js_tests/*.html metagenomescope/support_files/css/viewer_style.css docs/404.html docs/index.html docs/css/mgsc_docs_style.css

# -B: don't create __pycache__/ directories
pytest:
$(PYTEST_COMMAND)
python3 -B -m pytest \
metagenomescope/tests/ \
--cov-report xml \
--cov-report term \
--cov-report html \
--cov metagenomescope
rm -f metagenomescope/tests/output/*

jstest:
Expand Down

0 comments on commit 12af3b5

Please sign in to comment.