Skip to content
Snippets Groups Projects
Commit f11c81c6 authored by anttil's avatar anttil
Browse files

SWE-22 / SP-641: enable cleandb test suite

SVN: 29004
parent 91cbddb9
No related branches found
No related tags found
No related merge requests found
...@@ -34,10 +34,9 @@ repositories { ...@@ -34,10 +34,9 @@ repositories {
} }
test { test {
useTestNG { useTestNG()
suites = ['sourceTest/java/tests.xml'] options.suites('sourceTest/java/tests.xml')
}
jvmArgs '-Xmx2048m', '-XX:MaxPermSize=256m' jvmArgs '-Xmx2048m', '-XX:MaxPermSize=256m'
testLogging.showStandardStreams = true testLogging.showStandardStreams = true
......
...@@ -115,6 +115,13 @@ sourceSets { ...@@ -115,6 +115,13 @@ sourceSets {
} }
} }
task cleanDbSuite(type: Test) {
useTestNG()
options.suites('sourceTest/java/tests_system_cleandb_excluding_authorization.xml')
}
// This task is here to make WebAppsPropertiesTest to work. It requires some data files // This task is here to make WebAppsPropertiesTest to work. It requires some data files
// to be present on the same directory than the class file itself. // to be present on the same directory than the class file itself.
task copyTestData(type: Copy, dependsOn: testClasses) { task copyTestData(type: Copy, dependsOn: testClasses) {
...@@ -123,6 +130,8 @@ task copyTestData(type: Copy, dependsOn: testClasses) { ...@@ -123,6 +130,8 @@ task copyTestData(type: Copy, dependsOn: testClasses) {
include '*.properties' include '*.properties'
} }
test.dependsOn(copyTestData) test.dependsOn(copyTestData)
test.dependsOn(cleanDbSuite)
task compileGwt (dependsOn: classes, type: JavaExec) { task compileGwt (dependsOn: classes, type: JavaExec) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment