Skip to content

Commit

Permalink
Added script/test file and added smartness to test.coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecook80 committed Aug 26, 2013
1 parent 7a9089a commit 683fd45
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/test.coffee
Expand Up @@ -484,7 +484,11 @@ cover = ->
cov = (global || window)._$jscoverage || {}
Object.keys(cov).forEach (filename) ->
data = cov[filename]
console.log 'SF:' + 'lib/' + filename
fileArray = filename.split('/')

console.log 'SF:' + filename if fileArray.length > 1
console.log 'SF:' + 'lib/' + filename unless fileArray.length > 1

data.source.forEach (line, num) ->
num++
if(data[num] != undefined)
Expand Down
7 changes: 7 additions & 0 deletions script/test
@@ -0,0 +1,7 @@
#!/bin/bash

npm install

coffeecoverage --path relative ./lib ./lib

bin/coffee lib/test.coffee -c test/*.coffee | COVERALLS_REPO_TOKEN=bHAOkSWMqdodnZTDJ2Ox66OpRxjrbkP7X coveralls

0 comments on commit 683fd45

Please sign in to comment.