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 Summary
Constructors Constructor Description JunitTestReportCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 from all the xml test files.@NotNull Set<String>
getSupportedFileExtensions()
The valid file extension(s) of the test report file.
-
-
-
Method Detail
-
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 interfaceTestReportCollector
- 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 interfaceTestReportCollector
- 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 emptySet
if all extensions are supported.- Specified by:
getSupportedFileExtensions
in interfaceTestReportCollector
- Returns:
- supportedFileExtensions
-
-