Thanks Alexander. Not sure why, but the way you worded your response made the documentation I read click. I'll need to experiment a little more now to see if I can get this working. I'm working with some inherited code that I'll need to figure out how to work this in.
Also, if I'm understanding correctly, we'll need to ultimately update every test within which we would like screenshots, correct? With a call to "report()"? My initial understanding was that we could just update the gebConfig.groovy and it would apply to all tests globally without modify the individual tests themselves. Sounds like I misunderstood, correct? -Lee On Wednesday, December 18, 2019 at 9:29:34 PM UTC-6, Alexander Kriegisch wrote: > > You did not provide any Geb tests, so I can just ask speculatively: Do > your Geb tests extend GebReportingSpec instead of just GebSpec? And did > you try to manually create at least one screenshot from a running test > (before failure) via > > report "dummy screenshot" > > -- > Alexander Kriegisch > https://scrum-master.de > > > Lee schrieb am 19.12.2019 05:28 (GMT +07:00): > > > > I'm trying to enable the ability to take screenshots when our Geb tests > > fail in a Chrome browser. Even though my tests fail, I am not seeing any > > reports and/or screenshots being generated. > > > > > > I'm executing the tests via a Gradle task if that matters. > > > > > > I'm using Geb 2.3 and Spock 1.1-groovy-2.4 > > > > > > I've added the following to my gebConfig.groovy file: > > > > > > reportOnTestFailureOnly = false > > reportsDir = "target/execution-reports" > > > > > > That should be the only configurations that are needed, correct? > > > > > > If so, are there any suggestions how I may be able to troubleshoot this? > > > > > > I appreciate any assistance, > > > > > > Lee > > > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "Geb User Mailing List" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to [email protected] <javascript:> > > <mailto:[email protected] <javascript:>> . > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/geb-user/8fa7f83e-179f-4c2f-8759-51f7c9e7b766%40googlegroups.com > > > < > https://groups.google.com/d/msgid/geb-user/8fa7f83e-179f-4c2f-8759-51f7c9e7b766%40googlegroups.com?utm_medium=email&utm_source=footer> > > > > . > > > -- You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/35957058-73e3-4484-8f21-9d3c54fd4ec6%40googlegroups.com.
