Harald Wellmann
Harald Wellmann

Reputation: 12885

How to disable console output from TestNG?

How can I disable all console output when running TestNG programmatically via TestNG.run()? I've tried

   testNG.setUseDefaultListeners( false );

which does not make any change.

Upvotes: 1

Views: 1648

Answers (1)

Cedric Beust
Cedric Beust

Reputation: 15608

testng.setVerbose(0).

..........

Upvotes: 1

Related Questions