From 8653d505ecc3a1d0075b60904989b05b01e02d28 Mon Sep 17 00:00:00 2001 From: Benjamin Jones Date: Fri, 24 May 2013 17:17:44 -0700 Subject: added test-js target --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3