Skip to content

Commit

Permalink
Set up jasmine 2 test env #10
Browse files Browse the repository at this point in the history
  • Loading branch information
bcaudan committed Jan 24, 2015
1 parent 5185ef2 commit a4ed2ba
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 6 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Spec reporter for jasmine behavior-driven development framework",
"main": "src/jasmine-spec-reporter.js",
"scripts": {
"test": "node node_modules/jasmine-node/bin/jasmine-node --coffee --noStack spec",
"test": "node node_modules/jasmine/bin/jasmine.js",
"example": "node node_modules/jasmine-node/bin/jasmine-node --coffee example"
},
"repository": {
Expand All @@ -28,6 +28,7 @@
"colors": "~0.6.2"
},
"devDependencies": {
"jasmine-node": "~1.14.3"
"coffee-script": "1.8.0",
"jasmine": "2.1.1",
}
}
4 changes: 2 additions & 2 deletions spec/custom-processor.spec.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require('./lib/test-helper.coffee')
require('./helpers/test-helper.coffee')
SpecReporter = require('../src/jasmine-spec-reporter.js')
TestProcessor = require('./lib/test-processor.js')
TestProcessor = require('./helpers/test-processor.js')

describe 'spec reporter', ->
addMatchers()
Expand Down
1 change: 1 addition & 0 deletions spec/helpers/coffee-helper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('coffee-script/register');
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion spec/jasmine-spec-reporter.spec.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require('./lib/test-helper.coffee')
require('./helpers/test-helper.coffee')
SpecReporter = require('../src/jasmine-spec-reporter.js')

describe 'spec reporter', ->
Expand Down
2 changes: 1 addition & 1 deletion spec/suite-numbering.spec.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require('./lib/test-helper.coffee')
require('./helpers/test-helper.coffee')
SpecReporter = require('../src/jasmine-spec-reporter.js')

describe 'spec reporter', ->
Expand Down
10 changes: 10 additions & 0 deletions spec/support/jasmine.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"spec_dir": "spec",
"spec_files": [
"**/*[sS]pec.coffee"
],
"helpers": [
"helpers/**/*.js",
"helpers/**/*.coffee"
]
}

0 comments on commit a4ed2ba

Please sign in to comment.