Skip to content

Gradle plugin for testing diffs between commits

Notifications You must be signed in to change notification settings

kartashovaa/teddi

Repository files navigation

Teddi

Gradle plugin for testing diffs between commits

Runs a test if:

  1. The test file itself is changed
  2. The file containing class under test is changed

Usage

// settings.gradle
buildscript {
    repositories {
        mavenLocal()
    }

    dependencies {
        classpath "me.kyd3snik:teddi:0.0.1"
    }
}
// app/build.gradle
plugins {
    id 'me.kyd3snik.teddi'
}

Get started

Publishing project to maven local and testing last commit for "Debug" variant

$ git clone https://github.com/kartashov-a/teddi.git
$ cd teddi
$ ./gradlew publishToMavenLocal
$ cd <target-project-dir>
$ ./gradlew app:testDiffDebugUnitTest -PfromBlob=HEAD~1

About

Gradle plugin for testing diffs between commits

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages