Package com.atlassian.bamboo.build.test
Interface TestCollationService
-
- All Known Implementing Classes:
TestCollationServiceImpl
@PublicApi public interface TestCollationService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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
-
-
-
Method Detail
-
collateTestResults
void collateTestResults(@NotNull @NotNull TaskContext taskContext, @NotNull @NotNull String filePattern)
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 seecollateTestResults(TaskContext, String, TestReportCollector)
- Parameters:
taskContext
- of the executing TaskfilePattern
- to collect from the file system
-
collateTestResults
void collateTestResults(@NotNull @NotNull TaskContext taskContext, @NotNull @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. To implement support for an alternate reporting format seecollateTestResults(TaskContext, String, TestReportCollector)
- Parameters:
taskContext
- of the executing TaskfilePattern
- to collect from the file systempickupOutdatedFiles
- does not check test files timestamp
-
collateTestResults
void collateTestResults(@NotNull @NotNull TaskContext taskContext, @NotNull @NotNull String filePattern, @NotNull @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 formats- Parameters:
taskContext
- of the executing TaskfilePattern
- to collect from the file systemtestReportCollector
- to collect tests using the provided pattern
-
collateTestResults
void collateTestResults(@NotNull @NotNull TaskContext taskContext, @Nullable @Nullable String resultDirectory, @NotNull @NotNull String filePattern, @NotNull @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- 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- Since:
- 6.5
-
collateTestResults
void collateTestResults(@NotNull @NotNull TaskContext taskContext, @NotNull @NotNull String filePattern, @NotNull @NotNull TestReportCollector testReportCollector, boolean pickupOutdatedFiles)
-
collateTestResults
@ExperimentalApi void collateTestResults(@NotNull @NotNull TaskContext taskContext, @NotNull @NotNull TestReportProvider testReportProvider)
- Parameters:
taskContext
- of the executing TasktestReportProvider
- to collect tests from- Since:
- 3.2
-
-