Skip to content

Commit

Permalink
Makefile getting tests with find command
Browse files Browse the repository at this point in the history
  • Loading branch information
rochoa committed Sep 17, 2015
1 parent a93da95 commit 1b5a02b
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions Makefile
Expand Up @@ -11,29 +11,26 @@ clean:

check: test

TEST_SUITE := $(shell find test/{acceptance,integration,unit} -name "*.js")
TEST_SUITE_UNIT := $(shell find test/unit -name "*.js")
TEST_SUITE_INTEGRATION := $(shell find test/integration -name "*.js")
TEST_SUITE_ACCEPTANCE := $(shell find test/acceptance -name "*.js")

test:
@echo "***tests***"
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} \
test/unit/*.js \
test/unit/renderers/*.js \
test/integration/renderers/*.js \
test/acceptance/*.js
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE)

test-acceptance:
@echo "***acceptance tests***"
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} \
test/acceptance/*.js
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE_ACCEPTANCE)

test-integration:
@echo "***integration tests***"
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} \
test/integration/renderers/*.js
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE_INTEGRATION)

test-unit:
@echo "***unit tests***"
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} \
test/unit/*.js \
test/unit/renderers/*.js
@$(SHELL) ./run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE_UNIT)

jshint:
@echo "***jshint***"
Expand Down

0 comments on commit 1b5a02b

Please sign in to comment.