Tibor Digana created SUREFIRE-1555:
--------------------------------------

             Summary: Elapsed time in XML Report should satisfy pattern in XSD.
                 Key: SUREFIRE-1555
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1555
             Project: Maven Surefire
          Issue Type: Improvement
          Components: Maven Failsafe Plugin, Maven Surefire Plugin, Maven 
Surefire Report Plugin, xml generation
            Reporter: Tibor Digana
            Assignee: Tibor Digana
             Fix For: 2.22.1


Formatted time in Java:

{code:java}
        NumberFormat numberFormat = NumberFormat.getInstance( Locale.ENGLISH );
        numberFormat.setGroupingUsed( true );
        numberFormat.setMinimumFractionDigits( 0 );
        numberFormat.setMaximumFractionDigits( 3 );
        return numberFormat.format( runTime / MS_PER_SEC );
{code}




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to