code coverage target

This commit is contained in:
Zachary Snow 2020-12-11 12:40:21 -07:00
parent b7b40af6b8
commit c5b066d5eb
2 changed files with 9 additions and 0 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
dist/ dist/
bin/ bin/
.stack-work/ .stack-work/
.hpc/
*.tix

View File

@ -12,3 +12,10 @@ clean:
test: test:
(cd test && ./run-all.sh) (cd test && ./run-all.sh)
coverage:
stack install --local-bin-path bin --ghc-options=-fhpc
rm -f test/*/sv2v.tix
make test
stack exec hpc -- sum test/*/sv2v.tix --union --output=.hpc/combined.tix
stack exec hpc -- markup .hpc/combined.tix --destdir=.hpc