Package com.atlassian.bamboo.build.test
Interface TestReportCollector
-
- All Known Implementing Classes:
JunitTestReportCollector
,TestNGTestReportCollector
@ThreadSafe @PublicApi public interface TestReportCollector
Collects a builds test results. To be used in conjunction withTestCollationService.collateTestResults(TaskContext, String, TestReportCollector)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
canIgnoreResultsFrom(File file)
Checks if file "looks like" containing valid results for this test report collector.@NotNull TestCollectionResult
collect(@NotNull File file)
Collect all the results within the specified file@NotNull Set<String>
getSupportedFileExtensions()
The valid file extension(s) of the test report file.
-
-
-
Method Detail
-
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
-
-