When I'm running tests I hate staring at a blinking cursor with no idea what's running. To fix this I've added completion messages to all my tests. However I've realized that its a really hacky solution and adds fluff.
Assuming that TestNG's verbosity level prints the test description, how can I set the verbosity level in Maven? Note that I don't have a test.xml file, so if its the only way then I have no idea how to have a test.xml file + Maven's autogenerated test.xml file work together.
Surefire lets you invoke TestNG with any command line parameters you like, and TestNG does support a "verbose" command line, so it's probably only a matter of doing something like
<configuration>
<verbose>true</verbose>
</configuration>
Since maven-failsafe-plugin version 2.19 the verbosity level can be configured as follow:
<configuration>
...
<properties>
<property>
<name>surefire.testng.verbose</name>
<value>-1</value>
</property>
</properties>
...
</configuration>
Note: The verbosity level is 0 to 10, where 10 is most detailed. -1 will put TestNG in debug mode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With