Package com.atlassian.bamboo.build.test
Class TestCollationServiceImpl
java.lang.Object
com.atlassian.bamboo.build.test.TestCollationServiceImpl
- All Implemented Interfaces:
TestCollationService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
collateTestResults
(@NotNull TaskContext taskContext, @NotNull TestReportProvider testReportProvider) void
collateTestResults
(@NotNull TaskContext taskContext, @NotNull String filePattern) CollatesTestClassResult
s andTestCaseResult
s fromTaskContext.getRootDirectory()
using the specified file pattern This method parses in the JUnit format by default.void
collateTestResults
(@NotNull TaskContext taskContext, @NotNull String filePattern, boolean pickupOutdatedFiles) CollatesTestClassResult
s andTestCaseResult
s fromTaskContext.getRootDirectory()
using the specified file pattern This method parses in the JUnit format by default.void
collateTestResults
(@NotNull TaskContext taskContext, @NotNull String filePattern, @NotNull TestReportCollector testReportCollector) CollatesTestClassResult
s andTestCaseResult
s fromTaskContext.getRootDirectory()
using the specified file pattern You can implement your ownTestReportCollector
and pass it in to support other reporting formatsvoid
collateTestResults
(@NotNull TaskContext taskContext, @NotNull String filePattern, @NotNull TestReportCollector testReportCollector, boolean pickupOutdatedFiles) void
collateTestResults
(@NotNull TaskContext taskContext, @Nullable String resultDirectory, @NotNull String filePattern, @NotNull TestReportCollector testReportCollector, boolean pickupOutdatedFiles) CollatesTestClassResult
s andTestCaseResult
s fromTaskContext.getRootDirectory()
using the specified file pattern You can implement your ownTestReportCollector
and 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:
collateTestResults
in 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:TestCollationService
CollatesTestClassResult
s andTestCaseResult
s 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:
collateTestResults
in 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:TestCollationService
CollatesTestClassResult
s andTestCaseResult
s 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:
collateTestResults
in 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:TestCollationService
CollatesTestClassResult
s andTestCaseResult
s fromTaskContext.getRootDirectory()
using the specified file pattern You can implement your ownTestReportCollector
and pass it in to support other reporting formats- Specified by:
collateTestResults
in 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:
collateTestResults
in 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:TestCollationService
CollatesTestClassResult
s andTestCaseResult
s fromTaskContext.getRootDirectory()
using the specified file pattern You can implement your ownTestReportCollector
and pass it in to support other reporting formats- Specified by:
collateTestResults
in 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
-