Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

apply plugin: 'eclipse'
apply plugin: 'idea'
apply from: 'base.gradle'

subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'

configurations {
intTest.extendsFrom testRuntime
resIntTest.extendsFrom testRuntime
}

sourceSets {
intTest {
java.srcDir file('src/inttest/java')
resources.srcDir file('src/inttest/resources')
compileClasspath = sourceSets.main.output + configurations.intTest
runtimeClasspath = output + compileClasspath
}

resIntTest {
java.srcDir file('src/resinttest/java')
resources.srcDir file('src/resinttest/resources')
compileClasspath = sourceSets.main.output + configurations.resIntTest
runtimeClasspath = output + compileClasspath
}
}

task intTest(type: Test, dependsOn: jar) {
System.setProperty("org.apache.cocoon.mode", "va-veteran-dev")
systemProperties = System.properties
testClassesDir = sourceSets.intTest.output.classesDir
classpath = sourceSets.intTest.runtimeClasspath
jvmArgs '-Xms512m', '-Xmx2048m', '-XX:MaxPermSize=128m', '-XX:+CMSClassUnloadingEnabled', '-XX:+OptimizeStringConcat', '-XX:+UseCompressedStrings', '-XX:+UseConcMarkSweepGC'

def i = 1;

forkEvery = 50
maxParallelForks = 1

def longRunners = []
afterTest { descr, result ->
def time = result.endTime - result.startTime
if (time > longRunningTime) {
logger.warn("Test: $descr.className is long running. " + time)
longRunners << descr.className
}
}

afterSuite { descr, result ->
logger.lifecycle("#$i $descr.className $descr.name completed");
i++;
if (!descr.parent) {
file("$buildDir/longRunningTests").text = longRunners.join('\n')
}
}
}

task resIntTest(type: Test, dependsOn: jar) {
System.setProperty("org.apache.cocoon.mode", "va-veteran-dev")
systemProperties = System.properties
testClassesDir = sourceSets.resIntTest.output.classesDir
classpath = sourceSets.resIntTest.runtimeClasspath
jvmArgs '-Xms512m', '-Xmx2048m', '-XX:MaxPermSize=128m', '-XX:+CMSClassUnloadingEnabled', '-XX:+OptimizeStringConcat', '-XX:+UseCompressedStrings', '-XX:+UseConcMarkSweepGC'

def i = 1;

forkEvery = 50
maxParallelForks = 1

def longRunners = []
afterTest { descr, result ->
def time = result.endTime - result.startTime
if (time > longRunningTime) {
logger.warn("Test: $descr.className is long running. " + time)
longRunners << descr.className
}
}

afterSuite { descr, result ->
logger.lifecycle("#$i $descr.className $descr.name completed");
i++;
if (!descr.parent) {
file("$buildDir/longRunningTests").text = longRunners.join('\n')
}
}
}
}

String runCmd(String cmd) {
return cmd.execute().text.trim()
}

task deployClinicalServicesCollection << {
runCmd "./deployClinicalServicesCollection.sh " + "VarUtilityServices/src/main/resources/data/clinical-services.json"
}

task runJacocoCoverageReport(type:Exec) {
commandLine './run-jacoco-coverage-report.sh'
}