Gradle plugin for testing diffs between commits
Runs a test if:
- The test file itself is changed
- The file containing class under test is changed
// settings.gradle
buildscript {
repositories {
mavenLocal()
}
dependencies {
classpath "me.kyd3snik:teddi:0.0.1"
}
}
// app/build.gradle
plugins {
id 'me.kyd3snik.teddi'
}
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