in src/main/java/com/microsoft/appcenter/appium/EventReporter.java [21:43]
void reportJunit(EventType eventType, Description description, Throwable throwable) {
int run = getRun(description);
lastDescription = description;
try {
if (throwable != null) {
StringWriter errors = new StringWriter();
throwable.printStackTrace(new PrintWriter(errors));
Event event = Event.createWithException(toId(description, eventType), eventType, description.getMethodName(), description.getClassName(), run, errors.toString());
commit(event);
} else {
Event event = Event.create(toId(description, eventType), eventType, description.getMethodName(), description.getClassName(), run);
commit(event);
}
} catch (IOException e) {
throw new RuntimeException(e);
}
if (EventType.started.equals(eventType)) {
labelCounter = 0;
screenshotCounter = 0;
}
}