Programmatically invoke a gradle task graph in a unit test
问题 I am in the process of writing a custom plugin for gradle and as part of the unit testing I would like to invoke my task but in such away as it's prerequisite tasks are executed. The actual plugin is unfortunately an internal project so I can't sure the exact source, but I have prepared a unit test that demonstrates the problem: package toy import org.gradle.api.Project import org.gradle.testfixtures.ProjectBuilder import org.junit.Test class ToyTasksTest { boolean task1Run = false boolean