Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix for Issue #315 #356

Merged
merged 1 commit into from

2 participants

@kevinc

The formatter was setting an attribute "failed," but ant (and I'm
assuming other CLI tools) look for a "failures" attribute.

@kevinc kevinc Fixed junit's failure reporting display
The formatter was setting an attribute "failed," but ant (and I'm
assuming other CLI tools) look for a "failures" attribute.
6431f32
@aslakhellesoy aslakhellesoy merged commit 6431f32 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 6, 2012
  1. @kevinc

    Fixed junit's failure reporting display

    kevinc authored
    The formatter was setting an attribute "failed," but ant (and I'm
    assuming other CLI tools) look for a "failures" attribute.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  core/src/main/java/cucumber/formatter/JUnitFormatter.java
View
2  core/src/main/java/cucumber/formatter/JUnitFormatter.java
@@ -80,7 +80,7 @@ public void step(Step step) {
public void done() {
try {
//set up a transformer
- rootElement.setAttribute("failed", String.valueOf(rootElement.getElementsByTagName("failure").getLength()));
+ rootElement.setAttribute("failures", String.valueOf(rootElement.getElementsByTagName("failure").getLength()));
TransformerFactory transfac = TransformerFactory.newInstance();
Transformer trans = transfac.newTransformer();
trans.setOutputProperty(OutputKeys.INDENT, "yes");
Something went wrong with that request. Please try again.