Hi Gradle Team,
We recently started using build-cache in our company. We have updated many gradle tasks/plugins to be cache-friendly. Build cache has improved build speed to greater extent.
As next step, I’m looking for ways to add tests for gradle tasks to verify cacheability. We added few tests using gradle test-kit library. But, it takes lot of time as we are setting up new projects using TemporaryFolder to verify scenarios listed in gradle docs. I need to explicitly setup project dependencies, build files and release the plugins locally before test starts. Also, tests downloads this dependencies for every test run.
I’m looking for recommendations on adding tests for cacheable tasks.
- What are recommended usecases that i should test for cacheable tasks?(other than these )
- Is there gradle doc available on how to add tests for cacheable tasks?
- Can i test cacheability of tasks in unit-test fashion(i.e without setting up project, build.gradle, dependencies, local version of plug-ins)?