Update Testing authored by Andrey Ruzhanskiy's avatar Andrey Ruzhanskiy
......@@ -15,9 +15,36 @@ The Sybsystem Integration and System Integration tests are found in the gradle t
**CAUTION:** The "integrationTest" task is not in the build proces as the developer needs an active printersystem installed/acitvated on his device. It creates many printjobs, which sadly cannot be canceled due to limitations of the javax.print library (bug report is opened, see open issue). Also, the integrationtest task takes time as the plotting package works currently not efficient. Expect it to take minutes to finish.
All resources which are needed for testing purposes are located either under $ROOT_DIR$/src/test/resource or $ROOT_DIR$/src/integrationTest/resource.
The System and Acceptance Tests were done during the final presentation and are therefore not implemented as own tests.
All resources which are needed for testing purposes are located either under
* $ROOT_DIR$/src/test/resource
or
* $ROOT_DIR$/src/integrationTest/resource.
The system and acceptance Tests were done during the final presentation and are therefore not implemented as own tests.
Here the gradle definition for the integrationTest task located under $ROOT_DIR$/integrationTest.gradle
```gradle
sourceSets {
integrationTest {
java.srcDir 'src/integrationTest'
resources.srcDir 'src/integrationTest/resources'
compileClasspath += sourceSets.main.output + configurations.testRuntimeClasspath
runtimeClasspath += output + compileClasspath
}
}
task integrationTest(type: Test) {
group = 'verification'
description = 'Runs Integrationtests.'
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
mustRunAfter test
checkstyleIntegrationTest.enabled = false
}
```
## **Heuristic**
The heuristics that we choose are the following
......
......