Interface TestReportCollector

All Known Implementing Classes:
JunitTestReportCollector, TestNGTestReportCollector

@ThreadSafe @PublicApi public interface TestReportCollector
Collects a builds test results. To be used in conjunction with TestCollationService.collateTestResults(TaskContext, String, TestReportCollector).
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Checks if file "looks like" containing valid results for this test report collector.
    collect(@NotNull File file)
    Collect all the results within the specified file
    @NotNull Set<String>
    The valid file extension(s) of the test report file.
  • Method Details

    • collect

      @NotNull @NotNull TestCollectionResult collect(@NotNull @NotNull File file) throws Exception
      Collect all the results within the specified file
      Parameters:
      file -
      Returns:
      testReportCollectorResult
      Throws:
      Exception - if a problem with processing the given file has occurred
    • canIgnoreResultsFrom

      default boolean canIgnoreResultsFrom(File file)
      Checks if file "looks like" containing valid results for this test report collector.
      Returns:
      true if file should not be handled by this test report collector
    • getSupportedFileExtensions

      @NotNull @NotNull Set<String> getSupportedFileExtensions()
      The valid file extension(s) of the test report file. Return empty Set if all extensions are supported.
      Returns:
      supportedFileExtensions