</BUG>
for (TestMethodResult methodResult : methodResults) {
writer.writeCharacters("\n ");
String testCase = methodResult.result.getResultType() == TestResult.ResultType.SKIPPED ? "ignored-testcase" : "testcase";
<BUG>writer.writeStartElement(testCase);
writer.writeAttribute("name", methodResult.name);

writer.writeAttribute("classname", className);

writer.writeAttribute("time", String.valueOf(methodResult.getDuration() / 1000.0));
</BUG>
for (Throwable failure : methodResult.result.getExceptions()) {

public class EscapeCDATA implements Transformer<String, String> {
public String transform(String original) {
return TextUtil.escapeCDATA(original);
}
}
private void writeTests(SimpleXmlWriter writer, Set<TestMethodResult> methodResults, String className) throws IOException {
for (TestMethodResult methodResult : methodResults) {
writer.writeCharacters("\n ");
String testCase = methodResult.result.getResultType() == TestResult.ResultType.SKIPPED ? "ignored-testcase" : "testcase";
writer.writeStartElement(new SimpleXmlWriter.Element(testCase)
.attribute("name", methodResult.name)
.attribute("classname", className)
.attribute("time", String.valueOf(methodResult.getDuration() / 1000.0)));
for (Throwable failure : methodResult.result.getExceptions()) {
