-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b57e063
commit d95e38f
Showing
1 changed file
with
8 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
|
||
REPORTER = dot | ||
help: ## print this message | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' | ||
|
||
test: | ||
test: ## run tests either in the browser or in Node.js, based on the `BROWSERS` variable | ||
@if [ "x$(BROWSERS)" = "x" ]; then make test-node; else make test-zuul; fi | ||
|
||
test-node: | ||
@./node_modules/.bin/mocha \ | ||
--reporter $(REPORTER) \ | ||
--bail \ | ||
test/index.js | ||
test-node: ## run tests in Node.js | ||
@./node_modules/.bin/mocha --reporter dot --bail test/index.js | ||
|
||
test-zuul: | ||
@./node_modules/zuul/bin/zuul \ | ||
test/index.js | ||
test-zuul: ## run tests in the browser | ||
@./node_modules/zuul/bin/zuul test/index.js | ||
|
||
.PHONY: test | ||
.PHONY: help test test-node test-zuul |