Skip to content

Commit

Permalink
Fix problem with grails-functional-test plugin tests running twice
Browse files Browse the repository at this point in the history
- fix broken tests in grails-functional-test
  • Loading branch information
lhotari committed Nov 4, 2013
1 parent 413e5d9 commit 2b44bd4
Showing 1 changed file with 7 additions and 7 deletions.
Expand Up @@ -24,25 +24,25 @@ package org.codehaus.groovy.grails.test.runner.phase
class TestFeatureDiscoverySupport {

// The four test phases that we can run.
List<String> unitTests = [ "unit" ]
List<String> integrationTests = [ "integration" ]
List<String> functionalTests = []
List<String> otherTests = [ "cli" ]
Set<String> unitTests = [ "unit" ] as Set
Set<String> integrationTests = [ "integration" ] as Set
Set<String> functionalTests = [] as Set
Set<String> otherTests = [ "cli" ] as Set

Map<String, TestPhaseConfigurer> configurers = [unit:new DefaultTestPhaseConfigurer(), other:new DefaultTestPhaseConfigurer()]
Binding testExecutionContext


List<String> findTestType(String phase) {
Set<String> findTestType(String phase) {
final phaseKey = "${phase}Tests"
if (hasProperty(phaseKey)) {
return this."$phaseKey"
}
else if (testExecutionContext?.hasVariable(phaseKey)) {
return (List<String>)testExecutionContext.getVariable(phaseKey)
return testExecutionContext.getVariable(phaseKey) as Set
}
else {
return []
return [] as Set
}
}

Expand Down

0 comments on commit 2b44bd4

Please sign in to comment.