@Test
public void shouldExecuteOnProject() throws Exception {

  // no files
  assertThat(jacocoSettings.shouldExecuteOnProject(true)).isFalse();
  assertThat(jacocoSettings.shouldExecuteOnProject(false)).isFalse();
  fileSystem.add(new DefaultInputFile("", "src/foo/bar.java").setLanguage("java"));
  assertThat(jacocoSettings.shouldExecuteOnProject(true)).isFalse();
  assertThat(jacocoSettings.shouldExecuteOnProject(false)).isFalse();
  fileSystem.add(new DefaultInputFile("", "src/foo/bar.groovy").setLanguage(Groovy.KEY));
  assertThat(jacocoSettings.shouldExecuteOnProject(true)).isTrue();
  assertThat(jacocoSettings.shouldExecuteOnProject(false)).isFalse();
  settings.setProperty(JaCoCoConfiguration.REPORT_MISSING_FORCE_ZERO, true);
  assertThat(jacocoSettings.shouldExecuteOnProject(true)).isTrue();
  assertThat(jacocoSettings.shouldExecuteOnProject(false)).isTrue();
}