Skip to content

Commit 2821c90

Browse files
committed
Create target for running each test separately in a browser
1 parent b3a6b8a commit 2821c90

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

Makefile

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,14 +292,26 @@ view-istanbul-report:
292292

293293
# CONTINUOUS INTEGRATION #
294294

295-
.PHONY: test-ci test-ci-browsers
295+
.PHONY: test-ci test-ci-browsers test-ci-testling
296296
.PHONY: coverage coverage-codecov
297297

298-
# test-ci: test-local test-ci-browsers
299-
test-ci: test-local
298+
test-ci: test-local test-ci-browsers
300299

301300
test-ci-browsers: node_modules
302-
xvfb-run @$(MAKE) -f $(THIS_FILE) test-browsers
301+
xvfb-run @$(MAKE) -f $(THIS_FILE) test-ci-testling
302+
303+
test-ci-testling: node_modules
304+
NODE_ENV=$(NODE_ENV) \
305+
NODE_PATH=$(NODE_PATH_TEST) \
306+
for file in $(TESTS); do \
307+
echo ""; \
308+
echo "Running test: $$file"; \
309+
$(BROWSERIFY) \
310+
-p $(BROWSERIFY_PROXYQUIRE) \
311+
$$file \
312+
| $(TESTLING) \
313+
| $(TAP_REPORTER); \
314+
done
303315

304316
coverage: coverage-codecov
305317

0 commit comments

Comments
 (0)