writer.flush(); addNumberValue(time, EXECUTION_TIME, document.getTimeStatistics().getExecution()); addNumberValue(time, TOTAL_TIME, document.getTimeStatistics().getTotal()); addTextValue(element, RESULTS, buffer.toString(), true); addNumberValue(stats, SUCCESS, compiler.rightCount()); addNumberValue(stats, FAILURE, compiler.wrongCount()); addNumberValue(stats, ERROR, compiler.exceptionCount()); addNumberValue(stats, IGNORED, compiler.ignoredCount());