Skip to content

Commit c50ec3a

Browse files
committed
Added make file for running tests
1 parent fc66658 commit c50ec3a

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
TESTS = $(shell find test -name "*.spec.coffee")
2+
REPORTER = spec
3+
4+
test:
5+
@NODE_ENV=test ./node_modules/.bin/mocha \
6+
--require should \
7+
--reporter $(REPORTER) \
8+
--globals i \
9+
$(TESTS)
10+
11+
.PHONY: test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
},
2020

2121
"scripts": {
22-
"test": "vows --spec;jasmine-node spec --coffee --verbose"
22+
"test": "make test"
2323
}
2424
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ describe 'When creating a user from attributes', ->
1515
beforeEach ->
1616
user = new User expectedAttributes
1717

18+
1819
it 'should set the correct name', ->
1920
user.attributes.name.should.equal expectedAttributes.name
2021

0 commit comments

Comments
 (0)