@PublicApi
public interface TestCollationService
Modifier and Type | Method and Description |
---|---|
void |
collateTestResults(TaskContext taskContext,
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(TaskContext taskContext,
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(TaskContext taskContext,
String filePattern,
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(TaskContext taskContext,
String filePattern,
TestReportCollector testReportCollector,
boolean pickupOutdatedFiles) |
void |
collateTestResults(TaskContext taskContext,
TestReportProvider testReportProvider)
|
void collateTestResults(@NotNull TaskContext taskContext, @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 TaskContext taskContext, @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 TaskContext taskContext, @NotNull String filePattern, @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 TaskContext taskContext, @NotNull String filePattern, @NotNull TestReportCollector testReportCollector, boolean pickupOutdatedFiles)
@ExperimentalApi void collateTestResults(@NotNull TaskContext taskContext, @NotNull TestReportProvider testReportProvider)
taskContext
- of the executing TasktestReportProvider
- to collect tests fromCopyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.