babel/scripts/test-cov.sh
2015-11-05 10:00:57 +00:00

6 lines
216 B
Bash
Executable File

#!/bin/sh
set -e
node node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- `scripts/_get-test-directories.sh` --opts test/mocha.opts
test -n "`which open`" && open coverage/lcov-report/index.html