Skip to content

Commit

Permalink
add excluded runners parameter to Ant
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Coles committed Jan 3, 2023
1 parent 2ed693e commit 6d1de17
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -8,6 +8,10 @@ Read all about it at http://pitest.org

## Releases

## 1.10.4 (unreleased)

* #1134 Add `excludedRunners` parameter to command line interface and Ant

## 1.10.3

* #1128 Bug fix - lines with repeated debug entries double counted
Expand Down
4 changes: 4 additions & 0 deletions pitest-ant/src/main/java/org/pitest/ant/PitestTask.java
Expand Up @@ -212,6 +212,10 @@ public void setExcludedGroups(final String value) {
this.setOption(ConfigOption.EXCLUDED_GROUPS, value);
}

public void setExcludedRunners(final String value) {
this.setOption(ConfigOption.EXCLUDED_RUNNERS, value);
}

public void setIncludedTestMethods(final String value) {
this.setOption(ConfigOption.INCLUDED_TEST_METHODS, value);
}
Expand Down
7 changes: 7 additions & 0 deletions pitest-ant/src/test/java/org/pitest/ant/PitestTaskTest.java
Expand Up @@ -232,6 +232,13 @@ public void shouldPassExcludedGroupsOptionToJavaTask() {
verify(this.arg).setValue("--excludedGroups=foo");
}

@Test
public void shouldPassExcludedRunnersToJavaTask() {
this.pitestTask.setExcludedRunners("foo");
this.pitestTask.execute(this.java);
verify(this.arg).setValue("--excludedRunners=foo");
}

@Test
public void shouldPassIncludedTestMethodsOptionToJavaTask() {
this.pitestTask.setIncludedTestMethods("footest");
Expand Down

0 comments on commit 6d1de17

Please sign in to comment.