I am using geb + spock + gradle for tests and I'd really like to integrate a link to geb's screenshots into the gradle report. For those not familiar with geb, essentially it organizes screenshots for each test into a folder structure that follows the project package structure, for example:
com domain tests package class1 screenshot-of-test-method1.jpg screenshot-of-test-method2.jpg class2 screenshot-of-test-method1.jpg
I realize I'd have to write some code to figure out what the path to the image should be, but does gradle provide a way to customize the test reports that would allow me to at least insert the link somehow into the appropriate class's test report?
If gradle does not offer direct customization what other options or general approaches would you recommend?