Skip to content

Commit

Permalink
Count specs istead of using totalCount (Fixes #35)
Browse files Browse the repository at this point in the history
  • Loading branch information
netzpirat committed Feb 12, 2012
1 parent d93f5de commit 9c6ea1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/guard/jasmine/phantomjs/run-jasmine.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ page.onInitialized = ->
suites: []
}

specCount: 0
currentSpecs: []
nestedSuiteResults: {}

Expand Down Expand Up @@ -140,6 +141,7 @@ page.onInitialized = ->
messages.push result.message for result in spec.results().getItems()
specResult['messages'] = messages if messages.length isnt 0

@specCount += 1
@currentSpecs.push specResult

# Report results from a suite.
Expand Down Expand Up @@ -180,7 +182,7 @@ page.onInitialized = ->
@runnerResult['passed'] = runner.results().failedCount is 0

@runnerResult['stats'] = {
specs: runner.results().totalCount
specs: @specCount
failures: runner.results().failedCount
time: runtime
}
Expand Down

0 comments on commit 9c6ea1f

Please sign in to comment.