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 with
TestCollationService.collateTestResults(TaskContext, String, TestReportCollector)
.-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
canIgnoreResultsFrom
(File file) Checks if file "looks like" containing valid results for this test report collector.@NotNull TestCollectionResult
Collect all the results within the specified fileThe valid file extension(s) of the test report file.
-
Method Details
-
collect
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
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
The valid file extension(s) of the test report file. Return emptySet
if all extensions are supported.- Returns:
- supportedFileExtensions
-