forked from JacksonTian/eventproxy
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
39200df
commit 3d9dc2c
Showing
3 changed files
with
21 additions
and
12 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,20 +1,19 @@ | ||
TESTS = test/test.js | ||
REPORTER = spec | ||
TIMEOUT = 10000 | ||
JSCOVERAGE = ./node_modules/jscover/bin/jscover | ||
MOCHA_OPTS = | ||
|
||
test: | ||
@NODE_ENV=test ./node_modules/mocha/bin/mocha \ | ||
--reporter $(REPORTER) \ | ||
--timeout $(TIMEOUT) \ | ||
$(MOCHA_OPTS) \ | ||
$(TESTS) | ||
|
||
test-cov: lib-cov | ||
@EVENTPROXY_COV=1 $(MAKE) test REPORTER=dot | ||
@EVENTPROXY_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html | ||
test-cov: | ||
@$(MAKE) test MOCHA_OPTS='--require blanket' REPORTER=html-cov > coverage.html | ||
@$(MAKE) test MOCHA_OPTS='--require blanket' REPORTER=travis-cov | ||
|
||
lib-cov: | ||
@rm -rf $@ | ||
@$(JSCOVERAGE) lib $@ | ||
test-all: test test-cov | ||
|
||
.PHONY: test test-cov lib-cov | ||
.PHONY: test test-cov test-all |
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 +1 @@ | ||
module.exports = process.env.EVENTPROXY_COV ? require('./lib-cov/eventproxy') : require('./lib/eventproxy'); | ||
module.exports = require('./lib/eventproxy'); |
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