Class JunitTestReportCollector
java.lang.Object
com.atlassian.bamboo.build.test.junit.JunitTestReportCollector
- All Implemented Interfaces:
TestReportCollector
This class obtains the test results from a directory containing Junit test result file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanIgnoreResultsFrom(File file) Checks if file "looks like" containing valid results for this test report collector.@NotNull TestCollectionResultCollect all the results from all the xml test files.The valid file extension(s) of the test report file.
-
Constructor Details
-
JunitTestReportCollector
public JunitTestReportCollector()
-
-
Method Details
-
collect
Collect all the results from all the xml test files.- Specified by:
collectin interfaceTestReportCollector- Parameters:
file-- Returns:
- testReportCollectorResult
- Throws:
Exception- if a problem with processing the given file has occurred
-
canIgnoreResultsFrom
Description copied from interface:TestReportCollectorChecks if file "looks like" containing valid results for this test report collector.- Specified by:
canIgnoreResultsFromin interfaceTestReportCollector- Returns:
- true if file should not be handled by this test report collector
-
getSupportedFileExtensions
Description copied from interface:TestReportCollectorThe valid file extension(s) of the test report file. Return emptySetif all extensions are supported.- Specified by:
getSupportedFileExtensionsin interfaceTestReportCollector- Returns:
- supportedFileExtensions
-