Skip to content

Commit

Permalink
Fixed junit's failure reporting display
Browse files Browse the repository at this point in the history
The formatter was setting an attribute "failed," but ant (and I'm
assuming other CLI tools) look for a "failures" attribute.
  • Loading branch information
Kevin Cunningham committed Jul 6, 2012
1 parent d89f2ec commit 6431f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/cucumber/formatter/JUnitFormatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 6431f32

Please sign in to comment.