in src/main/java/com/microsoft/appcenter/appium/EventReporter.java [45:54]
private int getRun(Description description) {
if(description == null) {
throw new RuntimeException("Unable to get test information. Make sure the test class includes a @Rule:\n" +
" @Rule\n" +
" public TestWatcher watcher = Factory.createWatcher();");
}
Matcher m = paramsFinder.matcher(description.getMethodName());
return m.find() ? Integer.parseInt(m.group(1)) : 0;
}