Skip to content

Commit

Permalink
Added: JENKINS-12275 - TestNG plugin should contribute to Dashboard V…
Browse files Browse the repository at this point in the history
…iew plugin

Updated TestNG's project action to extend the more generic TestResultProjectAction that DashboardView plugin looks for

NOTE: this still doesnt fix the Test Trend Chart. Submitted pull request jenkinsci/dashboard-view-plugin#17 to fix that issue.
  • Loading branch information
nullin committed Jul 1, 2013
1 parent e19c41f commit ca1c5e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions README
Expand Up @@ -18,6 +18,7 @@ Release Notes

###
* Added: JENKINS-11899 - Print all URLs as HTML anchors (when escaping description and exception message)
* Added: JENKINS-12275 - TestNG plugin should contribute to Dashboard View plugin
* Fixed: JENKINS-17564 - Reporter output being escaped incorrectly

### v1.2
Expand Down
12 changes: 4 additions & 8 deletions src/main/java/hudson/plugins/testng/TestNGProjectAction.java
Expand Up @@ -10,6 +10,7 @@
import hudson.model.ProminentProjectAction;
import hudson.model.Result;
import hudson.plugins.testng.util.GraphHelper;
import hudson.tasks.test.TestResultProjectAction;
import hudson.util.ChartUtil;
import hudson.util.DataSetBuilder;
import org.jfree.chart.JFreeChart;
Expand All @@ -21,7 +22,7 @@
*
* @author nullin
*/
public class TestNGProjectAction implements ProminentProjectAction {
public class TestNGProjectAction extends TestResultProjectAction implements ProminentProjectAction {

private boolean escapeTestDescp;
private boolean escapeExceptionMsg;
Expand All @@ -35,7 +36,7 @@ public class TestNGProjectAction implements ProminentProjectAction {

public TestNGProjectAction(AbstractProject<?, ?> project,
boolean escapeTestDescp, boolean escapeExceptionMsg) {
this.project = project;
super(project);
this.escapeExceptionMsg = escapeExceptionMsg;
this.escapeTestDescp = escapeTestDescp;
}
Expand All @@ -54,18 +55,13 @@ public boolean getEscapeExceptionMsg()
return escapeExceptionMsg;
}

/**
* The owner of this action.
*/
private final AbstractProject<?, ?> project;

/**
* Getter for property 'project'.
*
* @return Value for property 'project'.
*/
public AbstractProject<?, ?> getProject() {
return project;
return super.project;
}

/**
Expand Down

0 comments on commit ca1c5e3

Please sign in to comment.