@Test public void testShouldNotExecuteOnProjectIfSkip() throws Exception { conf.setProperty(GallioConstants.MODE, CoverageReportSensor.MODE_SKIP); CoverageReportSensor sensor = buildSensor(); assertFalse(sensor.shouldExecuteOnProject(project)); }
@Test public void testShouldNotExecuteOnProjectIfTestProject() throws Exception { CoverageReportSensor sensor = buildSensor(); when(project.getName()).thenReturn("Project Test #2"); assertFalse(sensor.shouldExecuteOnProject(project)); }
@Test public void testShouldExecuteOnProject() throws Exception { CoverageReportSensor sensor = buildSensor(); assertTrue(sensor.shouldExecuteOnProject(project)); }