-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded node version -- switched tests to use mocha
- Loading branch information
1 parent
0f291d6
commit e6bf386
Showing
14 changed files
with
976 additions
and
986 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,14 +1,21 @@ | ||
SHELL := /bin/bash | ||
|
||
node-command := xargs -n 1 -I file expresso file | ||
file=*.test.js | ||
unit_files=`find test/unit -name '$(file)' -type f -print0 | xargs -0 echo` | ||
integration_files=`find test/integration -name '$(file)' -type f -print0 | xargs -0 echo` | ||
|
||
test: setup test-unit test-integration | ||
|
||
setup: | ||
@[ -e ".fastlegs" ] || node test/bootstrap/init.js | ||
|
||
test-unit: | ||
@find test/unit -name "*_test.js" | $(node-command) | ||
@NODE_ENV=test ./node_modules/.bin/mocha \ | ||
--reporter spec \ | ||
$(unit_files) | ||
|
||
test-integration: | ||
@find test/integration -name "*_test.js" | $(node-command) | ||
@NODE_ENV=test ./node_modules/.bin/mocha \ | ||
--reporter spec \ | ||
$(integration_files) |
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
Oops, something went wrong.