Class JunitTestReportCollector

java.lang.Object
com.atlassian.bamboo.build.test.junit.JunitTestReportCollector
All Implemented Interfaces:
TestReportCollector

@ThreadSafe public class JunitTestReportCollector extends Object implements TestReportCollector
This class obtains the test results from a directory containing Junit test result file.
  • Constructor Details

    • JunitTestReportCollector

      public JunitTestReportCollector()
  • Method Details

    • collect

      @NotNull public @NotNull TestCollectionResult collect(@NotNull @NotNull File file) throws Exception
      Collect all the results from all the xml test files.
      Specified by:
      collect in interface TestReportCollector
      Returns:
      testReportCollectorResult
      Throws:
      Exception - if a problem with processing the given file has occurred
    • canIgnoreResultsFrom

      public boolean canIgnoreResultsFrom(File file)
      Description copied from interface: TestReportCollector
      Checks if file "looks like" containing valid results for this test report collector.
      Specified by:
      canIgnoreResultsFrom in interface TestReportCollector
      Returns:
      true if file should not be handled by this test report collector
    • getSupportedFileExtensions

      @NotNull public @NotNull Set<String> getSupportedFileExtensions()
      Description copied from interface: TestReportCollector
      The valid file extension(s) of the test report file. Return empty Set if all extensions are supported.
      Specified by:
      getSupportedFileExtensions in interface TestReportCollector
      Returns:
      supportedFileExtensions