Permalink
Browse files

compiling issue fixed to run in grails in 2.3 (without forked tests)

  • Loading branch information...
1 parent f031d56 commit f15ac038573074ac57070bf45f4e42399a5e4807 @floriangrundig committed Nov 3, 2013
Showing with 5 additions and 3 deletions.
  1. +5 −3 scripts/_Events.groovy
View
@@ -1,5 +1,3 @@
-includeTargets << grailsScript("_GrailsCompile")
-
def tryToLoadCounter = 0
loadKarmaTestTypeClass = {->
@@ -11,7 +9,8 @@ loadKarmaTestTypeClass = {->
try {
doLoad()
} catch (ClassNotFoundException ignore) {
- compilePlugins()
+ includeTargets << grailsScript("_GrailsCompile")
+ compile()
loadKarmaTestTypeClass()
}
}
@@ -27,6 +26,9 @@ loadKarmaTestType = {
}
}
+eventTestCompileEnd = {
+ loadKarmaTestTypeClass()
+}
eventAllTestsStart = {
loadKarmaTestType()
}

0 comments on commit f15ac03

Please sign in to comment.