Package com.atlassian.bamboo.build.test
Class TestCollationServiceImpl
java.lang.Object
com.atlassian.bamboo.build.test.TestCollationServiceImpl
- All Implemented Interfaces:
TestCollationService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcollateTestResults(@NotNull TaskContext taskContext, @NotNull TestReportProvider testReportProvider) voidcollateTestResults(@NotNull TaskContext taskContext, @NotNull String filePattern) CollatesTestClassResults andTestCaseResults fromTaskContext.getRootDirectory()using the specified file pattern This method parses in the JUnit format by default.voidcollateTestResults(@NotNull TaskContext taskContext, @NotNull String filePattern, boolean pickupOutdatedFiles) CollatesTestClassResults andTestCaseResults fromTaskContext.getRootDirectory()using the specified file pattern This method parses in the JUnit format by default.voidcollateTestResults(@NotNull TaskContext taskContext, @NotNull String filePattern, @NotNull TestReportCollector testReportCollector) CollatesTestClassResults andTestCaseResults fromTaskContext.getRootDirectory()using the specified file pattern You can implement your ownTestReportCollectorand pass it in to support other reporting formatsvoidcollateTestResults(@NotNull TaskContext taskContext, @NotNull String filePattern, @NotNull TestReportCollector testReportCollector, boolean pickupOutdatedFiles) voidcollateTestResults(@NotNull TaskContext taskContext, @Nullable String resultDirectory, @NotNull String filePattern, @NotNull TestReportCollector testReportCollector, boolean pickupOutdatedFiles) CollatesTestClassResults andTestCaseResults fromTaskContext.getRootDirectory()using the specified file pattern You can implement your ownTestReportCollectorand pass it in to support other reporting formats
-
Constructor Details
-
TestCollationServiceImpl
public TestCollationServiceImpl()
-
-
Method Details
-
collateTestResults
public void collateTestResults(@NotNull @NotNull TaskContext taskContext, @NotNull @NotNull TestReportProvider testReportProvider) Description copied from interface:TestCollationService- Specified by:
collateTestResultsin interfaceTestCollationService- Parameters:
taskContext- of the executing TasktestReportProvider- to collect tests from
-
collateTestResults
public void collateTestResults(@NotNull @NotNull TaskContext taskContext, @NotNull @NotNull String filePattern) Description copied from interface:TestCollationServiceCollatesTestClassResults andTestCaseResults fromTaskContext.getRootDirectory()using the specified file pattern This method parses in the JUnit format by default. To implement support for an alternate reporting format seeTestCollationService.collateTestResults(TaskContext, String, TestReportCollector)- Specified by:
collateTestResultsin interfaceTestCollationService- Parameters:
taskContext- of the executing TaskfilePattern- to collect from the file system
-
collateTestResults
public void collateTestResults(@NotNull @NotNull TaskContext taskContext, @NotNull @NotNull String filePattern, boolean pickupOutdatedFiles) Description copied from interface:TestCollationServiceCollatesTestClassResults andTestCaseResults fromTaskContext.getRootDirectory()using the specified file pattern This method parses in the JUnit format by default. To implement support for an alternate reporting format seeTestCollationService.collateTestResults(TaskContext, String, TestReportCollector)- Specified by:
collateTestResultsin interfaceTestCollationService- Parameters:
taskContext- of the executing TaskfilePattern- to collect from the file systempickupOutdatedFiles- does not check test files timestamp
-
collateTestResults
public void collateTestResults(@NotNull @NotNull TaskContext taskContext, @NotNull @NotNull String filePattern, @NotNull @NotNull TestReportCollector testReportCollector) Description copied from interface:TestCollationServiceCollatesTestClassResults andTestCaseResults fromTaskContext.getRootDirectory()using the specified file pattern You can implement your ownTestReportCollectorand pass it in to support other reporting formats- Specified by:
collateTestResultsin interfaceTestCollationService- Parameters:
taskContext- of the executing TaskfilePattern- to collect from the file systemtestReportCollector- to collect tests using the provided pattern
-
collateTestResults
public void collateTestResults(@NotNull @NotNull TaskContext taskContext, @NotNull @NotNull String filePattern, @NotNull @NotNull TestReportCollector testReportCollector, boolean pickupOutdatedFiles) - Specified by:
collateTestResultsin interfaceTestCollationService
-
collateTestResults
public void collateTestResults(@NotNull @NotNull TaskContext taskContext, @Nullable @Nullable String resultDirectory, @NotNull @NotNull String filePattern, @NotNull @NotNull TestReportCollector testReportCollector, boolean pickupOutdatedFiles) Description copied from interface:TestCollationServiceCollatesTestClassResults andTestCaseResults fromTaskContext.getRootDirectory()using the specified file pattern You can implement your ownTestReportCollectorand pass it in to support other reporting formats- Specified by:
collateTestResultsin interfaceTestCollationService- Parameters:
taskContext- of the executing TaskresultDirectory- directory to look for result files in. Can be relative to task working directory or absolute. If blank, task working directory is used.filePattern- to collect from the file systemtestReportCollector- to collect tests using the provided patternpickupOutdatedFiles- does not check test files timestamp
-