A gradle plugin for preventing no tests or skipping tests, inspired by kawasima/savanna-maven-plugin.
Add this plugin to your gradle build file.
plugins {
id 'org.mikeneck.savanna-gradle-plugin' version 'v0.1'
}
Lion will come in a case listed bellow.
- The project has no tests.
- User skipped test task(
./gradlew build -x test
).
If a user runs build with skipping tests...
$ ./gradlew build -x test
> Task :compileJava
> Task :processResources NO-SOURCE
> Task :classes
> Task :jar
> Task :assemble
> Task :check
> Task :build
> Task :savanna
,、,,,、,,,
_,,;' '" '' ;;,,
(rヽ,;''""''゛゛;,ノr)
,; i ___ 、___iヽ゛;, テスト書いてないとかお前それ@t_wadaの前でも同じ事言えんの?
,;'''|ヽ・〉〈・ノ |゙ ';,
,;''"| ▼ |゙゛';,
,;'' ヽ _人_ / ,;'_
/シ、 ヽ ⌒⌒ / リ \
| "r,,`"'''゙´ ,,ミ|
| リ、 ,リ |
| i ゛r、ノ,,r" i _ |
| `ー――-----------┴ ⌒´ )
(ヽ _____________ ,, _´)
(_⌒_______________ ,, ィ
T |
| |
BUILD SUCCESSFUL in 149ms
3 actionable tasks: 3 executed