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

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
test-js:
	cd $(topdir)/src/js && $(phantomjs-cmd)                  \
	  lib/phantomjs_jasmine/phantomjs_jasminexml_runner.js \
	  tests/PhantomJSJasmineRunner.html tests/reports/

endif