Skip to content

Commit

Permalink
remove testng test as functionality now moved to plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
hcoles committed Jan 4, 2023
1 parent 4bd1fd1 commit a00cd57
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 104 deletions.
17 changes: 0 additions & 17 deletions pitest-maven-verification/src/test/java/org/pitest/PitMojoIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,23 +99,6 @@ public void shouldProduceConsistantCoverageData() throws Exception {
assertEquals(firstRun, secondRun);
}

@Test
// debatable if this test should be here. Relies on external testng plugin
public void shouldWorkWithTestNG() throws Exception {
File testDir = prepare("/pit-testng");
verifier.executeGoal("test");
verifier.executeGoal("org.pitest:pitest-maven:mutationCoverage");

String actual = readResults(testDir);
assertThat(actual)
.contains(
"<mutation detected='true' status='KILLED' numberOfTestsRun='3'><sourceFile>Covered.java</sourceFile>");
assertThat(actual)
.contains(
"<mutation detected='false' status='NO_COVERAGE' numberOfTestsRun='0'><sourceFile>Covered.java</sourceFile>");
assertThat(actual).doesNotContain("status='RUN_ERROR'");
}

@Test
public void shouldExcludeSpecifiedJUnitCategories() throws Exception {
File testDir = prepare("/pit-junit-categories");
Expand Down
51 changes: 0 additions & 51 deletions pitest-maven-verification/src/test/resources/pit-testng/pom.xml

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit a00cd57

Please sign in to comment.