Backported junit reporter from upstream