aboutsummaryrefslogtreecommitdiff
path: root/src/js/tests/build.mk
blob: 8facda738f92004a20b51de7955ab54146018b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

js-test-dir := $(path)

clean::
	$(RM) -r $(js-test-dir)/reports


# Jasmine Specs ###############################################################

ifeq "$(phantomjs-cmd)" ""
$(call strict-error,"phantomjs not found: unable to run javascript tests")
else

test: test-js

.PHONY: test-js
test-js:
	cd $(topdir)/src/js && $(phantomjs-cmd)                  \
	  lib/phantomjs_jasmine/phantomjs_jasminexml_runner.js \
	  tests/PhantomJSJasmineRunner.html tests/reports/

endif