Commit 65fbc97a authored by Tristan Cavelier's avatar Tristan Cavelier

'make phantom' added to the Makefile to launch qunit test with phantomjs.

The output is redirected to test/unit_test_result.html
parent 016942d9
......@@ -56,6 +56,10 @@ uglify:
lint:
$(LINT_CMD) $(LINT_FILES)
phantom:
~/node_modules/phantomjs/bin/phantomjs test/run-qunit.js test/jiotests_withoutrequirejs.html | awk 'BEGIN {print "<!DOCTYPE html><html>"} /^<head>$$/, /^<\/body>$$/ {print} END {print "</html>"}' | sed -e 's,^ *<\(/\|\)script.*>$$,,g' > test/unit_test_result.html
grep '^ <title>✔ ' test/unit_test_result.html > /dev/null
.phony: clean
clean:
find -name '*~' -delete
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment