Class UnitTestActivityReporter
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- io.jenkins.plugins.devopsportal.reporters.AbstractActivityReporter<UnitTestActivity>
-
- io.jenkins.plugins.devopsportal.reporters.UnitTestActivityReporter
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,GenericActivityHandler<UnitTestActivity>
,SimpleBuildStep
public class UnitTestActivityReporter extends AbstractActivityReporter<UnitTestActivity>
Build step of a project used to record a UNIT_TEST activity.- Author:
- RĂ©mi BELLO <remi@evolya.fr>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UnitTestActivityReporter.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description UnitTestActivityReporter(String applicationName, String applicationVersion, String applicationComponent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivityCategory
getActivityCategory()
float
getTestCoverage()
int
getTestsFailed()
int
getTestsIgnored()
int
getTestsPassed()
void
setTestCoverage(float testCoverage)
void
setTestsFailed(int testsFailed)
void
setTestsIgnored(int testsIgnored)
void
setTestsPassed(int testsPassed)
Result
updateActivity(ApplicationBuildStatus status, UnitTestActivity activity, TaskListener listener, EnvVars env, FilePath workspace)
-
Methods inherited from class io.jenkins.plugins.devopsportal.reporters.AbstractActivityReporter
getApplicationComponent, getApplicationName, getApplicationVersion, getBuildStatusDescriptor, perform, setApplicationComponent, setApplicationName, setApplicationVersion
-
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Method Detail
-
getTestCoverage
public float getTestCoverage()
-
setTestCoverage
@DataBoundSetter public void setTestCoverage(float testCoverage)
-
getTestsPassed
public int getTestsPassed()
-
setTestsPassed
@DataBoundSetter public void setTestsPassed(int testsPassed)
-
getTestsFailed
public int getTestsFailed()
-
setTestsFailed
@DataBoundSetter public void setTestsFailed(int testsFailed)
-
getTestsIgnored
public int getTestsIgnored()
-
setTestsIgnored
@DataBoundSetter public void setTestsIgnored(int testsIgnored)
-
updateActivity
public Result updateActivity(@NonNull ApplicationBuildStatus status, @NonNull UnitTestActivity activity, @NonNull TaskListener listener, @NonNull EnvVars env, @NonNull FilePath workspace)
-
getActivityCategory
public ActivityCategory getActivityCategory()
- Specified by:
getActivityCategory
in classAbstractActivityReporter<UnitTestActivity>
-
-