Stores your test results
- Install
dockeranddocker-compose - Download
docker-compose-prod.yml - Run
docker-compose -f /path/to/docker-compose-prod.yml up -d - Access test-store on http://localhost or http://localhost:8080 if you want to use the new UI.
Adapt your build.gradle according to the following template
buildscript {
repositories {
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'gradle.plugin.ch.yvu.teststore:gradle-plugin:0.12'
}
}
apply plugin: 'ch.yvu.teststore'
teststore {
host '<your test store server>'
port 8080
testSuite '<your test suite id>'
revision System.properties['revision']
xmlReports ~/.*\/test-results\/TEST-.*\.xml/
changesFile 'git.log'
changesUrlTemplate 'https://github.com/ybonjour/test-store/commit/${revision}'
incremental false
}
Run ./gradlew storeResults to store your test results once you have executed your tests. It will collect all test results (in JUnit XML format) according to the pattern specified in teststore.xmlReports in your build.gradle file and send them to the test-store server.
If you want to store the result of a test as soon as it finishes, you can set incremental to true. In this case you don't need to use the storeResults task.