summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/Gruntfile.coffee4
-rw-r--r--js/Makefile4
2 files changed, 8 insertions, 0 deletions
diff --git a/js/Gruntfile.coffee b/js/Gruntfile.coffee
index 3280d94e8..c5268a3ee 100644
--- a/js/Gruntfile.coffee
+++ b/js/Gruntfile.coffee
@@ -104,6 +104,10 @@ module.exports = (grunt) ->
reporters: ['progress', 'junit']
junitReporter:
outputFile: 'test-results.xml'
+ unit_phantom:
+ configFile: 'config/testacular_conf.js'
+ browsers: ['PhantomJS']
+
phpunit:
classes:
diff --git a/js/Makefile b/js/Makefile
index f3ee911b9..cb4c0339e 100644
--- a/js/Makefile
+++ b/js/Makefile
@@ -37,6 +37,10 @@ watch: compile
testacular: deps
export CHROME_BIN=$(chrome_bin) && export FIREFOX_BIN=$(firefox_bin) && \
$(grunt) --config $(CURDIR)/Gruntfile.coffee testacular
+
+testacular_phantom: deps
+ export PHANTOMJS_BIN=$(phantomjs) && \
+ $(grunt) --config $(CURDIR)/Gruntfile.coffee testacular:unit_phantom
phpunit: deps
$(grunt) --config $(CURDIR)/Gruntfile.coffee testphp