File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire
surefire-its/src/test/java/org/apache/maven/surefire/its Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1436,6 +1436,10 @@ private void convertTestNGParameters() throws MojoExecutionException {
14361436 if (this .getParallel () != null ) {
14371437 getProperties ().setProperty (ProviderParameterNames .PARALLEL_PROP , this .getParallel ());
14381438 }
1439+
1440+ Optional .ofNullable (getProperties ().get ("surefire.testng.verbose" ))
1441+ .ifPresent (s -> getProperties ().setProperty ("testng.verbose" , (String ) s ));
1442+
14391443 convertGroupParameters ();
14401444
14411445 if (this .getThreadCount () > 0 ) {
Original file line number Diff line number Diff line change @@ -47,16 +47,16 @@ public void shouldNotBeVerbose() throws Exception {
4747 .sysProp ("testNgVersion" , "6.14.3" )
4848 .executeTest ()
4949 .verifyErrorFreeLog ()
50- .assertThatLogLine (containsString ("[Parser] Running: " ), is (0 ));
50+ .assertThatLogLine (containsString ("===== Invoked methods " ), is (0 ));
5151 }
5252
5353 @ Test
5454 public void shouldBeVerbose () throws Exception {
5555 unpack ("/testng-simple" )
5656 .sysProp ("testNgVersion" , "6.14.3" )
57- .sysProp ("surefire.testng.verbose" , "10 " )
57+ .sysProp ("surefire.testng.verbose" , "15 " )
5858 .executeTest ()
5959 .verifyErrorFreeLog ()
60- .assertThatLogLine (containsString ("[Parser] Running: " ), is (1 ));
60+ .assertThatLogLine (containsString ("===== Invoked methods " ), is (1 ));
6161 }
6262}
You can’t perform that action at this time.
0 commit comments