TestBalloon itself tests Kotlin Gradle scripts in its
integration-test module (
see here for some explanations).
Whether it's easy to do things like this depends on one's goals, the test framework, and on Gradle expertise. So TestBalloon may make is easier, but there are other factors.