X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=test.sh;h=9ca252ed0d876a2a574f22a9c9c0b6dc7edd1b88;hb=94647da23ed251ba0f1da8d155d2552680a4e9cf;hp=3d3bfbb6c1ae287d2400b52eb1bec8cc5df52bf7;hpb=e6b0b7c295a1c3838817744e4548c52bbbdf051f;p=dygraphs.git diff --git a/test.sh b/test.sh index 3d3bfbb..9ca252e 100755 --- a/test.sh +++ b/test.sh @@ -9,4 +9,11 @@ if [ $? != 0 ]; then exit 1 fi -phantomjs phantom-driver.js +# Don't run tests if the documentation doesn't parse. +./generate-documentation.py > /dev/null +if [ $? != 0 ]; then + echo Failed to generate documentation. Fix this before running tests. + exit 1 +fi + +phantomjs phantom-driver.js $*