emmental/Makefile

24 lines
664 B
Makefile
Raw Normal View History

# Copyright 2019 (c) Anna Schumaker.
clean:
find . -type d -name __pycache__ -exec rm -r {} \+
find trier -type d -name "Test Album" -exec rm -r {} \+
find trier -type d -name "Test Library" -exec rm -r {} \+
.PHONY: trier
trier:
python trier/generate_tracks.py
EMMENTAL_TESTING=1 python -m unittest discover -v
.PHONY: tests
tests:
python trier/generate_tracks.py
find `pwd` -name 'test_*.py' -not -path '*/curds/*' -not -path '*/rind/*' -not -path '*test_emmental.py' \
| EMMENTAL_TESTING=1 xargs python -m unittest -v
.PHONY:cover
cover:
python trier/generate_tracks.py
EMMENTAL_TESTING=1 coverage run -m unittest discover -v
coverage report -m