public JenkinsRule j = new JenkinsRule();
@Test
public void testOnlyRegressionsAreShown() throws Exception {
FreeStyleProject project = j.createFreeStyleProject("onlyRegressions");
project.getPublishersList().add(new JUnitResultArchiver("target/testreports/*.xml", true, null));
project.getBuildersList().add(new TestBuilder() {
@Override
public boolean perform(AbstractBuild<?, ?> abstractBuild, Launcher launcher, BuildListener buildListener) throws InterruptedException, IOException {
final URL failedTestReport = OnlyRegressionsTest.class.getClassLoader().getResource("hudson/plugins/emailext/testreports/failed_test.xml");