@PublicApi
public interface TestCollationService
Modifier and Type | Method and Description |
---|---|
void |
collateTestResults(@NotNull TaskContext taskContext,
@NotNull String filePattern)
Collates
TestClassResult s and TestCaseResult s from TaskContext.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)
Collates
TestClassResult s and TestCaseResult s from TaskContext.getRootDirectory() using the specified file pattern
This method parses in the JUnit format by default. |
void |
collateTestResults(@NotNull TaskContext taskContext,
@Nullable String resultDirectory,
@NotNull String filePattern,
@NotNull TestReportCollector testReportCollector,
boolean pickupOutdatedFiles)
Collates
TestClassResult s and TestCaseResult s from TaskContext.getRootDirectory() using the specified file pattern
You can implement your own TestReportCollector and pass it in to support other reporting formats |
void |
collateTestResults(@NotNull TaskContext taskContext,
@NotNull String filePattern,
@NotNull TestReportCollector testReportCollector)
Collates
TestClassResult s and TestCaseResult s from TaskContext.getRootDirectory() using the specified file pattern
You can implement your own TestReportCollector and pass it in to support other reporting formats |
void |
collateTestResults(@NotNull TaskContext taskContext,
@NotNull String filePattern,
@NotNull TestReportCollector testReportCollector,
boolean pickupOutdatedFiles) |
void |
collateTestResults(@NotNull TaskContext taskContext,
@NotNull TestReportProvider testReportProvider)
|
void collateTestResults(@NotNull @NotNull TaskContext taskContext, @NotNull @NotNull String filePattern)
TestClassResult
s and TestCaseResult
s from TaskContext.getRootDirectory()
using the specified file pattern
This method parses in the JUnit format by default.
To implement support for an alternate reporting format see collateTestResults(TaskContext, String, TestReportCollector)
taskContext
- of the executing TaskfilePattern
- to collect from the file systemvoid collateTestResults(@NotNull @NotNull TaskContext taskContext, @NotNull @NotNull String filePattern, boolean pickupOutdatedFiles)
TestClassResult
s and TestCaseResult
s from TaskContext.getRootDirectory()
using the specified file pattern
This method parses in the JUnit format by default.
To implement support for an alternate reporting format see collateTestResults(TaskContext, String, TestReportCollector)
taskContext
- of the executing TaskfilePattern
- to collect from the file systempickupOutdatedFiles
- does not check test files timestampvoid collateTestResults(@NotNull @NotNull TaskContext taskContext, @NotNull @NotNull String filePattern, @NotNull @NotNull TestReportCollector testReportCollector)
TestClassResult
s and TestCaseResult
s from TaskContext.getRootDirectory()
using the specified file pattern
You can implement your own TestReportCollector
and pass it in to support other reporting formatstaskContext
- of the executing TaskfilePattern
- to collect from the file systemtestReportCollector
- to collect tests using the provided patternvoid collateTestResults(@NotNull @NotNull TaskContext taskContext, @Nullable @Nullable String resultDirectory, @NotNull @NotNull String filePattern, @NotNull @NotNull TestReportCollector testReportCollector, boolean pickupOutdatedFiles)
TestClassResult
s and TestCaseResult
s from TaskContext.getRootDirectory()
using the specified file pattern
You can implement your own TestReportCollector
and pass it in to support other reporting formatstaskContext
- 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 timestampvoid collateTestResults(@NotNull @NotNull TaskContext taskContext, @NotNull @NotNull String filePattern, @NotNull @NotNull TestReportCollector testReportCollector, boolean pickupOutdatedFiles)
@ExperimentalApi void collateTestResults(@NotNull @NotNull TaskContext taskContext, @NotNull @NotNull TestReportProvider testReportProvider)
taskContext
- of the executing TasktestReportProvider
- to collect tests fromCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.