Execute cliargs script before running tests
This commit is contained in:
parent
ec50e5272b
commit
e6230a3644
6 changed files with 23 additions and 13 deletions
|
@ -108,4 +108,13 @@ public class PitestOperationBuild extends Project {
|
|||
.ruleSets("config/pmd.xml")
|
||||
.execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void test() throws Exception {
|
||||
new ExecOperation()
|
||||
.fromProject(this)
|
||||
.command("scripts/cliargs.sh")
|
||||
.execute();
|
||||
super.test();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ class PitestOperationTest {
|
|||
void checkAllParameters() throws IOException {
|
||||
var args = Files.readAllLines(Paths.get("src", "test", "resources", "pitest-args.txt"));
|
||||
|
||||
assertThat(args).hasSizeGreaterThan(0);
|
||||
assertThat(args).isNotEmpty();
|
||||
|
||||
var params = new PitestOperation()
|
||||
.fromProject(new BaseProject())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue