SEC-3029: Add springSnapshotTests

Test against Spring Framework's latest Snapshots
This commit is contained in:
Rob Winch 2015-07-07 14:03:51 -05:00
parent 7b4a37f27e
commit 848523e47a

View File

@ -94,6 +94,15 @@ configurations {
integrationTestRuntime {
extendsFrom integrationTestCompile, testRuntime
}
springSnapshotTestRuntime.extendsFrom testRuntime
}
configurations.springSnapshotTestRuntime {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'org.springframework') {
details.useVersion 'latest.integration'
}
}
}
sourceSets {
@ -126,6 +135,16 @@ project.conf2ScopeMappings.addMapping(MavenPlugin.TEST_COMPILE_PRIORITY + 1, pro
project.conf2ScopeMappings.addMapping(MavenPlugin.TEST_COMPILE_PRIORITY + 2, project.configurations.getByName("integrationTestRuntime"), Conf2ScopeMappingContainer.TEST)
check.dependsOn integrationTest
task springSnapshotTest(type: Test) {
jvmArgs = ['-ea', '-Xmx500m', '-XX:MaxPermSize=128M']
classpath = sourceSets.test.output + sourceSets.main.output + configurations.springSnapshotTestRuntime
reports {
html.destination = project.file("$buildDir/spring-snapshot-test-results/")
junitXml.destination = project.file("$buildDir/reports/spring-snapshot-tests/")
}
}
check.dependsOn springSnapshotTest
dependencies {
optional "commons-logging:commons-logging:$commonsLoggingVersion"