aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Benjamin Jones <bjones@galois.com>2013-05-24 17:17:44 -0700
committerGravatar Benjamin Jones <bjones@galois.com>2013-05-24 17:17:44 -0700
commit8653d505ecc3a1d0075b60904989b05b01e02d28 (patch)
tree0c6759a0743d580fa73a8db9c5c4c8098f8e2737 /Makefile
parent9fcfe08332ec6a1ccb77706d3edb6f83989d29ab (diff)
added test-js target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1c0e9c9..1496ac9 100644
--- a/Makefile
+++ b/Makefile
@@ -85,3 +85,14 @@ test: chromeExtension profile-chrome profile-firefox ffExtension pkg-rsTester
cd $(HEADLESS_DIR) && $(MVN_TEST_CMD)
endif
+
+
+# JS Unit Tests ###############################################################
+
+PHANTOM_EXE := $(shell which phantomjs 2>/dev/null)
+ifneq "$PHANTOM_EXE" ""
+
+test-js:
+ cd $(topdir)/contexts/data && $(PHANTOM_EXE) lib/phantomjs_jasmine/phantomjs_jasminexml_runner.js tests/PhantomJSJasmineRunner.html tests/reports/
+
+endif