// Run and wait for the build; assert success
FreeStyleBuild build = j.assertBuildStatusSuccess(project.scheduleBuild2(0));
// Assert that the build has an rcov build action attached
RcovBuildAction action = build.getAction(RcovBuildAction.class);
assertNotNull("Missing RcovBuildAction for build " + build, action);
// Check each detail object to see that it can load its source code
for (RcovFileResult result: action.getResults().getFiles()) {
RcovFileDetail detail = new RcovFileDetail(build, result);
String sourceCode = detail.loadSourceCode();
assertNotNull("Missing source code for file " + result.getName(), sourceCode);
assertThat("Missing table tag in source code for file " + result.getName(), sourceCode, containsString("<table"));
}