However, you haven’t written any custom logic that’s unit testable or really even integration testable. You’re calling the Gradle API to copy actual files in the context of a build, so you should focus on the functional testing section of the guide and documentation on using Gradle TestKit.