hudson.tasks.junit
Class TestDataPublisher

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<TestDataPublisher>
      extended by hudson.tasks.junit.TestDataPublisher
All Implemented Interfaces:
ExtensionPoint, Describable<TestDataPublisher>

public abstract class TestDataPublisher
extends AbstractDescribableImpl<TestDataPublisher>
implements ExtensionPoint

Contributes TestActions to test results. This enables plugins to annotate test results and provide richer UI, such as letting users claim test failures, allowing people to file bugs, or more generally, additional actions, views, etc.

To register your implementation, put Extension on your descriptor implementation.

Since:
1.320

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
TestDataPublisher()
           
 
Method Summary
static DescriptorExtensionList<TestDataPublisher,Descriptor<TestDataPublisher>> all()
           
abstract  TestResultAction.Data getTestData(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener, TestResult testResult)
          Called after test results are collected by Hudson, to create a resolver for TestActions.
 
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestDataPublisher

public TestDataPublisher()
Method Detail

getTestData

public abstract TestResultAction.Data getTestData(AbstractBuild<?,?> build,
                                                  Launcher launcher,
                                                  BuildListener listener,
                                                  TestResult testResult)
                                           throws IOException,
                                                  InterruptedException
Called after test results are collected by Hudson, to create a resolver for TestActions.

Returns:
can be null to indicate that there's nothing to contribute for this test result.
Throws:
IOException
InterruptedException

all

public static DescriptorExtensionList<TestDataPublisher,Descriptor<TestDataPublisher>> all()


Copyright © 2004-2013 Hudson. All Rights Reserved.