Class TestNGTestReportCollector
- java.lang.Object
-
- com.atlassian.bamboo.plugins.testresultparser.testng.TestNGTestReportCollector
-
- All Implemented Interfaces:
TestReportCollector
@ThreadSafe public class TestNGTestReportCollector extends Object implements TestReportCollector
-
-
Constructor Summary
Constructors Constructor Description TestNGTestReportCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanIgnoreResultsFrom(File file)Checks if file "looks like" containing valid results for this test report collector.@NotNull TestCollectionResultcollect(@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:
collectin 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: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
@NotNull public @NotNull Set<String> 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
-
-