Skip to content

Commit

Permalink
Prototype of Blanket coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
athieriot committed Jul 8, 2014
1 parent fa96db7 commit 6a8ba46
Show file tree
Hide file tree
Showing 5 changed files with 383 additions and 2 deletions.
2 changes: 2 additions & 0 deletions coffee/spec/geometry-spec.coffee
@@ -1,5 +1,7 @@
'use strict'

require("blanket")({})

require '../helpers'
Point = require '../geom/point'
Rect = require '../geom/rect'
Expand Down
2 changes: 2 additions & 0 deletions coffee/spec/integration-spec.coffee
@@ -1,5 +1,7 @@
'use strict'

require("blanket")({})

require '../helpers'
World = require '../model/world'

Expand Down
358 changes: 358 additions & 0 deletions coverage.html

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion gulpfile.coffee
Expand Up @@ -48,7 +48,6 @@ gulp.task 'uglify', ['build'], ->
.pipe uglify()
.pipe gulp.dest './dist/'


gulp.task 'test', ->
gulp.src './coffee/spec/**/*.coffee', read: false
.pipe mocha
Expand All @@ -59,6 +58,16 @@ gulp.task 'test', ->
.on 'error', notify.onError 'test error'
.on 'error', errorHandler

gulp.task 'coverage', ->
gulp.src './coffee/spec/**/*.coffee', read: false
.pipe mocha
ui: 'bdd'
reporter: 'html-cov'
compilers:
coffee: 'coffee-script/register'
.on 'error', notify.onError 'test error'
.on 'error', errorHandler

gulp.task 'default', ['lint', 'build', 'test', 'uglify']

gulp.task 'watch', ->
Expand Down
12 changes: 11 additions & 1 deletion package.json
Expand Up @@ -14,6 +14,15 @@
"type": "git",
"url": "git://github.com/volkhin/RoadTrafficSimulator.git"
},
"config": {
"blanket": {
"pattern": "/coffee/",
"loader": "./node-loaders/coffee-script",
"data-cover-reporter-options": {
"shortnames": true
}
}
},
"license": "MIT",
"dependencies": {},
"devDependencies": {
Expand All @@ -35,6 +44,7 @@
"jquery": "^2.1.1",
"jquery-mousewheel": "^3.1.11",
"underscore": "^1.6.0",
"vinyl-source-stream": "^0.1.1"
"vinyl-source-stream": "^0.1.1",
"blanket": "~1.1.6"
}
}

0 comments on commit 6a8ba46

Please sign in to comment.