Tibor17 commented on a change in pull request #281: [SUREFIRE-1766] Surefire 
does not display TestNG data provider values on command line
URL: https://github.com/apache/maven-surefire/pull/281#discussion_r402599926
 
 

 ##########
 File path: 
surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGReporter.java
 ##########
 @@ -183,4 +183,21 @@ public void onConfigurationSuccess( ITestResult result )
         //onTestSuccess( result );
     }
 
+    /**
+     * Acquire a better representation of the test name that includes 
parameters and the invocation count, if there are
+     * any parameters
+     *
+     * @param result the test result to extract from
+     * @return a descriptive name for the test
+     */
+    private static String testName( ITestResult result )
+    {
+        Object[] parameters = result.getParameters();
+        if ( parameters == null || parameters.length == 0 )
+        {
+            return result.getName();
+        }
+        return result.getName() + Arrays.toString(
 
 Review comment:
   ok, the users have to write brief and readable value returned by 
`toString()`.
   Can you pls write the integration test now?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to