Possible to suppress toString() on TestNG test method parameters?

We’re using TestNG DataProviders under Gradlle 1.10. When the TestNG test methods that use these DataProviders are called, the new incubating Gradle feature whereby toString() is called on each test method argument kicks in. Some of these objects have rather large overridden toString() representations, and it’s causing large amounts of console chatter.

Is there a way to turn this toString() off? I tried disabling HTML test reports, but that seemed heavy handed, and didn’t work anyway.


There’s currently no way to turn this off atm.

Got it.

Can I file an issue to have this configurable? Jira says to use the Forums for this, but I don’t know how to affect that from here.

Raised as GRADLE-2998.


I could possibly help fix this. By which I mean if it does not involve deep knowledge of Gradle internals. If you think I could help, where should I start looking? And how should I approach the solution?

We want to do this at the display level, so when the feedback is displayed.

A good place to start would be looking at how the console logging is done in the Test task.