Skip to content

Gradle plugin that prints the summary of run, failed and skipped tests at the end of the build

License

Notifications You must be signed in to change notification settings

joshua-jandyco/gradle-test-results

Repository files navigation

Test Results Plugin

Build Image Apache 2.0

Prints a summary of run, failed and skipped tests at the end of the build. The test results summary currently shows:

  • Summary for each test type run (e.g test, integTest, etc)
  • Total of all tests run

Example Output:

...
BUILD SUCCESSFUL

Total time: 10.577 secs

--------------------------------------------------------------------------------
TEST RESULTS
--------------------------------------------------------------------------------
test: Tests Run: 6, Failures: 3, Skipped: 0
integrationTest: Tests Run: 2, Failures: 1, Skipped: 0
--------------------------------------------------------------------------------
Total: Tests Run: 8, Failures: 4, Skipped: 0

Usage

Put the following in your ~/.gradle/init.gradle so that it is available for all of your projects.

initscript {
    repositories {
        maven {
            url "https://plugins.gradle.org/m2/"
        }
    }
    dependencies {
        classpath "gradle.plugin.com.jandyco:test-results:0.1.0"
    }
}

rootProject {
    // Must use fully qualified class name due to bug in init script apply plugin
    // http://stackoverflow.com/questions/14595606/cannot-apply-an-external-plugin-in-a-gradle-init-script-github-project-included
    apply plugin: com.jandyco.TestResultsPlugin
}

About

Gradle plugin that prints the summary of run, failed and skipped tests at the end of the build

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages