You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
365 B
Bash
17 lines
365 B
Bash
#!/bin/bash
|
|
# Runs the mocha tests
|
|
|
|
if [ $BASH_ARGV ]; then
|
|
if [ -e "$BASH_ARGV" ]; then
|
|
FILES=$BASH_ARGV
|
|
else
|
|
FILES=$(find src -name "*$BASH_ARGV*.test.js")
|
|
fi
|
|
echo Running test for $FILES
|
|
else
|
|
echo Running all tests...
|
|
FILES=$(find src -name "*.test.js")
|
|
fi
|
|
|
|
mocha --reporter spec --compilers js:babel-register $FILES --require babel-polyfill
|