viewer: add a badge displaying percentage of successful tests