Class TestSetStats


  • public class TestSetStats
    extends java.lang.Object
    Maintains per-thread test result state. Not thread safe.
    • Field Detail

      • trimStackTrace

        private final boolean trimStackTrace
      • plainFormat

        private final boolean plainFormat
      • testSetStartAt

        private long testSetStartAt
      • testStartAt

        private long testStartAt
      • completedCount

        private int completedCount
      • errors

        private int errors
      • failures

        private int failures
      • skipped

        private int skipped
      • lastStartAt

        private long lastStartAt
    • Constructor Detail

      • TestSetStats

        public TestSetStats​(boolean trimStackTrace,
                            boolean plainFormat)
    • Method Detail

      • getElapsedSinceTestSetStart

        public int getElapsedSinceTestSetStart()
      • getElapsedSinceLastStart

        public int getElapsedSinceLastStart()
      • testSetStart

        public void testSetStart()
      • testStart

        public void testStart()
      • reset

        public void reset()
      • getCompletedCount

        public int getCompletedCount()
      • getErrors

        public int getErrors()
      • getFailures

        public int getFailures()
      • getSkipped

        public int getSkipped()
      • incrementCompletedCount

        private void incrementCompletedCount()
      • getTestSetSummary

        public java.lang.String getTestSetSummary​(WrappedReportEntry reportEntry,
                                                  boolean phrasedClassName)
      • getColoredTestSetSummary

        public java.lang.String getColoredTestSetSummary​(WrappedReportEntry reportEntry,
                                                         boolean phrasedClassName)
      • getTestResults

        public java.util.List<java.lang.String> getTestResults()
      • concatenateWithTestGroup

        static java.lang.String concatenateWithTestGroup​(org.apache.maven.shared.utils.logging.MessageBuilder builder,
                                                         ReportEntry report,
                                                         boolean phrasedClassName)
        Append the test set message for a report. e.g. "org.foo.BarTest ( of group )" or phrased text "test class description ( of group )".
        Parameters:
        builder - MessageBuilder with preceded text inside
        report - report whose test set is starting
        Returns:
        the message