0

Im currently working on a project that has a module containing 5000+ JUnit test cases, and I would like gradle to output only JUnit test case failures as the success output doesnt really add much.

Is there any way to configure this easily in Grails? Or do I have to go down the custom formatter route?

Any pointers would be great!

1 Answer 1

0

Here's how I'd do it

  1. Use an afterTest { ... } closure to capture the test failures in a list
  2. Create a TestReport task and use the list to configure reportOn(...)

Note that step 2 might need to use a closure to delay the calculation

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.