I don’t find unit testing Gradle plugins very helpful since it’s easy to get a false positive. So I usually only provide integration tests with TestKit. Since gradle scripts are groovy, you can put assert
statements in your test gradle scripts which I find convenient.
Eg