com.atlassian.bamboo.build.test
Interface TestCollationService

All Known Implementing Classes:
TestCollationServiceImpl

public interface TestCollationService

Collates TestClassResults and TestCaseResults from the file system after a TaskType execution


Method Summary
 void collateTestResults(TaskContext taskContext, java.lang.String filePattern)
          Collates TestClassResults and TestCaseResults from TaskContext.getWorkingDirectory() using the specified file pattern This method parses in the JUnit format by default.
 void collateTestResults(TaskContext taskContext, java.lang.String filePattern, TestReportCollector testReportCollector)
          Collates TestClassResults and TestCaseResults from TaskContext.getWorkingDirectory() using the specified file pattern You can implement your own TestReportCollector and pass it in to support other reporting formats
 void collateTestResults(TaskContext taskContext, TestReportProvider testReportProvider)
          Collates TestClassResults and TestCaseResults from the given TestReportProvider
 

Method Detail

collateTestResults

void collateTestResults(@NotNull
                        TaskContext taskContext,
                        @NotNull
                        java.lang.String filePattern)
Collates TestClassResults and TestCaseResults from TaskContext.getWorkingDirectory() 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)

Parameters:
taskContext - of the executing Task
filePattern - to collect from the file system

collateTestResults

void collateTestResults(@NotNull
                        TaskContext taskContext,
                        @NotNull
                        java.lang.String filePattern,
                        @NotNull
                        TestReportCollector testReportCollector)
Collates TestClassResults and TestCaseResults from TaskContext.getWorkingDirectory() using the specified file pattern You can implement your own TestReportCollector and pass it in to support other reporting formats

Parameters:
taskContext - of the executing Task
filePattern - to collect from the file system
testReportCollector - to collect tests using the provided pattern

collateTestResults

void collateTestResults(@NotNull
                        TaskContext taskContext,
                        @NotNull
                        TestReportProvider testReportProvider)
Collates TestClassResults and TestCaseResults from the given TestReportProvider

Parameters:
taskContext - of the executing Task
testReportProvider - to collect tests from
Since:
3.2


Copyright © 2011 Atlassian. All Rights Reserved.