Merge pull request #574 from danvk/test-warnings
[dygraphs.git] / scripts / check-no-only.sh
diff --git a/scripts/check-no-only.sh b/scripts/check-no-only.sh
new file mode 100755 (executable)
index 0000000..0977ec1
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+# Checks that no ".only" has made it into tests. This should never be commited,
+# since it will disable the vast majority of tests.
+
+if grep -R '\.only(' auto_tests/tests; then
+  echo 'Remove .only from tests before committing.'
+  exit 1
+fi
+
+exit 0