com.atlassian.bamboo.build.test
Class TestCollationServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.build.test.TestCollationServiceImpl
All Implemented Interfaces:
TestCollationService

public class TestCollationServiceImpl
extends java.lang.Object
implements TestCollationService


Constructor Summary
TestCollationServiceImpl()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCollationServiceImpl

public TestCollationServiceImpl()
Method Detail

collateTestResults

public void collateTestResults(@NotNull
                               TaskContext taskContext,
                               @NotNull
                               TestReportProvider testReportProvider)
Description copied from interface: TestCollationService
Collates TestClassResults and TestCaseResults from the given TestReportProvider

Specified by:
collateTestResults in interface TestCollationService
Parameters:
taskContext - of the executing Task
testReportProvider - to collect tests from

collateTestResults

public void collateTestResults(@NotNull
                               TaskContext taskContext,
                               @NotNull
                               java.lang.String filePattern)
Description copied from interface: TestCollationService
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 TestCollationService.collateTestResults(TaskContext, String, TestReportCollector)

Specified by:
collateTestResults in interface TestCollationService
Parameters:
taskContext - of the executing Task
filePattern - to collect from the file system

collateTestResults

public void collateTestResults(@NotNull
                               TaskContext taskContext,
                               @NotNull
                               java.lang.String filePattern,
                               @NotNull
                               TestReportCollector testReportCollector)
Description copied from interface: TestCollationService
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

Specified by:
collateTestResults in interface TestCollationService
Parameters:
taskContext - of the executing Task
filePattern - to collect from the file system
testReportCollector - to collect tests using the provided pattern


Copyright © 2012 Atlassian. All Rights Reserved.