File tree Expand file tree Collapse file tree 8 files changed +45
-19
lines changed
Expand file tree Collapse file tree 8 files changed +45
-19
lines changed Original file line number Diff line number Diff line change 22# VARIABLES #
33
44# Define the Node environment:
5- NODE_ENV ?= test
5+ NODE_ENV ?=
6+
7+ # Define the Node path:
8+ NODE_PATH ?=
69
710# Define whether the make commands are running on a hosted continuous integration service:
811ifeq ($(TRAVIS ) , true)
Original file line number Diff line number Diff line change 44# Define the command for `node`:
55NODE ?= node
66
7+ # Define the Node environment:
8+ NODE_ENV ?= benchmark
9+
710
811# TARGETS #
912
Original file line number Diff line number Diff line change 11
22# VARIABLES #
33
4+ # Define the Node environment:
5+ NODE_ENV ?= repl
6+
47# Define the path of the REPL executable:
58REPL ?= $(LOCAL_BIN_DIR ) /repl
69
Original file line number Diff line number Diff line change 11
22# VARIABLES #
33
4+ # Define the Node environment:
5+ NODE_ENV ?= test
6+
7+ # Define the browser test runner:
48BROWSER_TEST_RUNNER ?= testling
59
610# Define the path to the browserify executable:
4044# [3]: https://github.com/scottcorgan/tap-spec
4145
4246test-browsers : $(NODE_MODULES )
43- NODE_ENV=$(NODE_ENV ) \
44- NODE_PATH=$(NODE_PATH_TEST ) \
4547 $(BROWSERIFY ) \
4648 $(BROWSERIFY_FLAGS ) \
4749 $(TESTS ) \
Original file line number Diff line number Diff line change 11
22# VARIABLES #
33
4+ # Define the Node environment:
5+ NODE_ENV ?= test
6+
47# Determine the host kernel:
58KERNEL ?= $(shell uname -s)
69
@@ -34,8 +37,6 @@ BROWSER_TEST_FLAGS ?=
3437# [1]: https://github.com/substack/testling
3538
3639view-testling : $(NODE_MODULES )
37- NODE_ENV=$(NODE_ENV ) \
38- NODE_PATH=$(NODE_PATH_TEST ) \
3940 $(BROWSERIFY ) \
4041 $(BROWSERIFY_FLAGS ) \
4142 $(TESTS ) \
Original file line number Diff line number Diff line change @@ -44,8 +44,6 @@ JAVASCRIPT_TEST_COV_FLAGS ?= --no-default-excludes \
4444# [1]: https://github.com/gotwarlost/istanbul
4545
4646test-istanbul : $(NODE_MODULES )
47- NODE_ENV=$(NODE_ENV ) \
48- NODE_PATH=$(NODE_PATH_TEST ) \
4947 $(JAVASCRIPT_TEST_COV ) $(JAVASCRIPT_TEST_COV_FLAGS ) $(JAVASCRIPT_TEST ) -- $(JAVASCRIPT_TEST_FLAGS ) $(TESTS )
5048
5149.PHONY : test-istanbul
Original file line number Diff line number Diff line change 11
22# VARIABLES #
33
4+ # Define the Node environment:
5+ NODE_ENV ?= test
6+
7+ # Define the Node path:
8+ NODE_PATH ?= $(NODE_PATH_TEST )
9+
410# Define the code coverage instrumentation utility:
511JAVASCRIPT_CODE_INSTRUMENTER ?= istanbul
612
Original file line number Diff line number Diff line change 11
22# VARIABLES #
33
4+ # Define the Node environment:
5+ NODE_ENV ?= test
6+
7+ # Define the Node path:
8+ NODE_PATH ?= $(NODE_PATH_TEST )
9+
410# Define the test runner to use when running JavaScript tests:
511JAVASCRIPT_TEST_RUNNER ?= tape
612
@@ -33,12 +39,14 @@ test-javascript: test-javascript-local
3339# This target runs JavaScript unit tests locally.
3440
3541test-javascript-local : $(NODE_MODULES )
36- NODE_ENV=$(NODE_ENV ) \
37- NODE_PATH=$(NODE_PATH_TEST ) \
38- $(JAVASCRIPT_TEST ) \
39- $(JAVASCRIPT_TEST_FLAGS ) \
40- $(TESTS ) \
41- | $(TAP_REPORTER )
42+ for test in $( TESTS) ; do \
43+ echo ' ' ; \
44+ echo " Running test: $$ test" ; \
45+ $(JAVASCRIPT_TEST ) \
46+ $(JAVASCRIPT_TEST_FLAGS ) \
47+ $$ test \
48+ | $(TAP_REPORTER ) || exit 1; \
49+ done
4250
4351.PHONY : test-javascript-local
4452
@@ -53,11 +61,13 @@ test-javascript-local: $(NODE_MODULES)
5361# [1]: https://github.com/zoubin/tap-summary
5462
5563test-javascript-summary : $(NODE_MODULES )
56- NODE_ENV=$(NODE_ENV ) \
57- NODE_PATH=$(NODE_PATH_TEST ) \
58- $(JAVASCRIPT_TEST ) \
59- $(JAVASCRIPT_TEST_FLAGS ) \
60- $(TESTS ) \
61- | $(TAP_SUMMARY )
64+ for test in $( TESTS) ; do \
65+ echo ' ' ; \
66+ echo " Running test: $$ test" ; \
67+ $(JAVASCRIPT_TEST ) \
68+ $(JAVASCRIPT_TEST_FLAGS ) \
69+ $$ test \
70+ | $(TAP_SUMMARY ) || exit 1; \
71+ done
6272
6373.PHONY : test-javascript-summary
You can’t perform that action at this time.
0 commit comments