UNPKG

duo-test

Version:

Duo's testing utility.

28 lines (18 loc) 606 B
T = ../../bin/duo-test TESTS = $(filter-out test/tests.js, $(wildcard test/*.js)) SRC = $(wildcard index.js lib/*.js) build.js: test/tests.js duo --root . --type js --stdout < $< > $@ test/tests.js: $(SRC) $(TESTS) @echo '// GENERATED FILE: DO NOT EDIT!' > $@ @$(foreach test, $(TESTS), echo 'require("./$(test)");' >> $@;) test: test-phantomjs test-phantomjs: build.js @$(T) phantomjs --reporter spec test-browser: build.js @$(T) browser test-saucelabs: build.js @$(T) saucelabs -b safari:6..7 clean: rm -rf test/tests.js build.js components .PHONY: clean test test-phantomjs test-browser