/test-store

Stores your test results

Primary LanguageKotlinMIT LicenseMIT

test-store Build Status

Stores your test results

Run test-store server

  1. Install docker and docker-compose
  2. Download docker-compose-prod.yml
  3. Run docker-compose -f /path/to/docker-compose-prod.yml up -d
  4. Access test-store on http://localhost or http://localhost:8080 if you want to use the new UI.

Store test results from your gradle build

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
}

Store results at the end of a run

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.

Store results as soon as they are available

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.