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 $*