Skip to content

Commit

Permalink
isolate some tests to make them pass in some cases / environments
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari committed Apr 4, 2013
1 parent c6667f9 commit 98c974f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions grails-test-suite-persistence/build.gradle
Expand Up @@ -46,11 +46,18 @@ test {
maxParallelForks = 2
forkEvery = 100
jvmArgs = ['-Xmx1048M','-XX:MaxPermSize=256m']
excludes = ['**/GrailsDomainBinderTests.class']
excludes = ['**/GrailsDomainBinderTests.class',
'**/ComponentValidationTests.class',
'**/HibernateMappingUniqueConstraintTests.class']
}

task testGrailsDomainBinder(type: Test) {
includes = ['**/GrailsDomainBinderTests.class']
}

test.dependsOn testGrailsDomainBinder
task testIsolatedPersistentOne(type: Test) {
includes = ['**/ComponentValidationTests.class']
includes = ['**/HibernateMappingUniqueConstraintTests.class']
}

test.dependsOn testGrailsDomainBinder, testIsolatedPersistentOne
4 changes: 2 additions & 2 deletions grails-test-suite-uber/build.gradle
Expand Up @@ -49,12 +49,12 @@ test {
maxParallelForks = 4
forkEvery = 100
maxHeapSize = '1024m'
excludes = ["**/*TestCase.class","**/DataSourceGrailsPluginTests","**/MockUtilsTests.class","**/GrailsUnitTestCaseTests.class"]
excludes = ["**/*TestCase.class","**/DataSourceGrailsPluginTests","**/MockUtilsTests.class","**/GrailsUnitTestCaseTests.class","**/SetupTeardownInvokeTests.class","**/TestMixinSetupTeardownInvokeTests.class","**/UrlMappingsTestMixinTests.class"]
}

task isolatedTestsOne(type:Test) {
includes = [
"**/DataSourceGrailsPluginTests.class","**/MockUtilsTests.class","**/GrailsUnitTestCaseTests.class"]
"**/DataSourceGrailsPluginTests.class","**/MockUtilsTests.class","**/GrailsUnitTestCaseTests.class","**/SetupTeardownInvokeTests.class","**/TestMixinSetupTeardownInvokeTests.class","**/UrlMappingsTestMixinTests.class"]
}

test.dependsOn isolatedTestsOne

0 comments on commit 98c974f

Please sign in to comment.