public void processTestResults(String relativeName, TestSummary testSummary) throws IOException {
finishOutputForTest();
getAssertionCounts().add(testSummary);
HtmlTag tag = new HtmlTag("li");
tag.add(HtmlUtil.makeSpanTag("results " + getExecutionResult(relativeName, testSummary), testSummary.toString()));
HtmlTag link = HtmlUtil.makeLink("#" + relativeName + currentTest, relativeName);
link.addAttribute("class", "link");
tag.add(link);
if (latestTestTime != null) {
tag.add(HtmlUtil.makeSpanTag("", String.format("(%.03f seconds)", latestTestTime.elapsedSeconds())));
}
pageCounts.tallyPageCounts(getExecutionResult(relativeName, testSummary, wasInterrupted()));
HtmlTag insertScript = HtmlUtil.makeAppendElementScript(testSummariesId, tag.html());
writeData(insertScript.html());
}