Hi,
I’m writing some custom gradle tasks to support deploying different software stacks onto AWS. I currently have some tasks like PackageResources, BuildAmi, etc… under the buildSrc directory. I have written tests for these tasks in the test directory but as I go I realize these are mainly integration tests since they really interact with AWS, for instance the BuildAmi task, and can take a signficant amout of time. The consequence is that it is not really feasible for these tests to run as unit tests under buildSrc.
I have been trying various things to try and move these tests to an integrationTest directory still under buildSrc w/o much success. Do you have an example of integration tests for buildSrc tasks that I could look at ?
Maybe my approach is wrong and I really need to start packaging all of this in a plugin. Again an example of a plugin with integration tests baked in would be awesome.
Thanks, Luis