Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix for GRAILS-9042 #185

Merged
merged 1 commit into from

2 participants

@bodiam

I've created a plugin for Fitnesse, and Fitnesse can only give the number of executed tests after the tests have been run. In order to work around this, I supply 1 test to run in the doPrepare() method, to trigger the test run. However, this number is also used in the reporting, which is, in my case, incorrect.

@bodiam bodiam GRAILS-9042 Make _GrailsTest report the real number of tests, instead…
… of given by prepare. Fixed by recalculating the real number of tests which are executed.
835dede
@graemerocher graemerocher merged commit 9c1ecb4 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 20, 2012
  1. @bodiam

    GRAILS-9042 Make _GrailsTest report the real number of tests, instead…

    bodiam authored
    … of given by prepare. Fixed by recalculating the real number of tests which are executed.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  scripts/_GrailsTest.groovy
View
1  scripts/_GrailsTest.groovy
@@ -290,6 +290,7 @@ runTests = { GrailsTestType type, File compiledClassesDir ->
def result = type.run(testEventPublisher)
def end = new Date()
+ testCount = result.passCount + result.failCount
grailsConsole.addStatus "Completed $testCount $type.name test${testCount > 1 ? 's' : ''}, ${result.failCount} failed in ${end.time - start.time}ms"
grailsConsole.lastMessage = ""
Something went wrong with that request. Please try again.