https://github.com/kdabir/roft
Gradle plugin to Rerun Only Failed Tests
https://github.com/kdabir/roft
continuous-testing gradle plugin test-driven-development
Last synced: 3 months ago
JSON representation
Gradle plugin to Rerun Only Failed Tests
- Host: GitHub
- URL: https://github.com/kdabir/roft
- Owner: kdabir
- License: mit
- Created: 2018-04-09T03:51:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-20T23:15:11.000Z (about 4 years ago)
- Last Synced: 2025-02-13T21:50:31.176Z (4 months ago)
- Topics: continuous-testing, gradle, plugin, test-driven-development
- Language: Groovy
- Homepage: https://plugins.gradle.org/plugin/com.kdabir.rerun-only-failed-tests
- Size: 60.5 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rerun only Failed Tests
[](https://travis-ci.org/kdabir/roft)
Runs only the failed tests from last run. This is especially important productivity boost when we have a very
large test suite.### Usage
Apply the plugin to the project
plugins {
id "com.kdabir.rerun-only-failed-tests" version "0.0.1"
}
Run tests$ gradle test
If there are failures the next `gradle test` would execute only the failed tests. Once those tests
pass, subsequent `gradle test` will run the entire test suite.Caveat: If we have introduced a test failure in another cases while fixing failed ones, it might go
unnoticed since we are only running the part of test suite.
### Contributing
1. Make Changes
2. Add test coverage for changes
3. Publish it to local maven repository using `gradle publishToMavenLocal`
4. To consume the plugin built locally, add this to consuming project
```
buildscript{
repositories { mavenLocal() }
dependencies { classpath "com.kdabir.roft:roft:+" }
}apply plugin: 'com.kdabir.rerun-only-failed-tests'
```
5. Once changes look good, Send a pull request
#### Acknowledgement
This plugin is heavily inspired by the following StackOverflow [answer](https://stackoverflow.com/a/48826059/469414).