Browse Source

add a makefile I use for developing pasn1.

It uses entr to watch for edits, and then automatically runs the tests
and prints out code coverage.
python2
John-Mark Gurney 5 years ago
parent
commit
73539cfebc
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      Makefile

+ 4
- 0
Makefile View File

@@ -0,0 +1,4 @@
MODULES=pasn1.py

test:
(echo $(MODULES) | entr sh -c 'python -m coverage run -m unittest $(basename $(MODULES)) && coverage report -m')

Loading…
Cancel
Save