Inital commit

This commit is contained in:
Erik C. Thauvin 2023-08-29 08:47:13 -07:00
commit 739446ce63
56 changed files with 3401 additions and 0 deletions

View file

@ -0,0 +1,46 @@
package com.example;
import rife.bld.BuildCommand;
import rife.bld.Project;
import rife.bld.extension.PitestOperation;
import rife.tools.FileUtils;
import java.nio.file.Path;
import java.util.List;
import static rife.bld.dependencies.Scope.test;
import static rife.bld.dependencies.Repository.MAVEN_CENTRAL;
import static rife.bld.dependencies.Repository.RIFE2_RELEASES;
public class ExamplesBuild extends Project {
public ExamplesBuild() {
pkg = "com.example";
name = "Examples";
version = version(0, 1, 0);
repositories = List.of(MAVEN_CENTRAL, RIFE2_RELEASES);
scope(test)
.include(dependency("org.pitest", "pitest", version(1, 14, 4)))
.include(dependency("org.pitest", "pitest-command-line", version(1, 14, 4)))
.include(dependency("org.pitest", "pitest-junit5-plugin", version(1, 2, 0)))
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 10, 0)))
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 10, 0)));
}
public static void main(String[] args) {
new ExamplesBuild().start(args);
}
@BuildCommand(summary = "Run PIT mutation tests")
public void pit() throws Exception {
new PitestOperation()
.fromProject(this)
.reportDir(Path.of("reports", "mutations").toString())
.targetClasses(pkg + ".*")
.targetTests(pkg + ".*")
.verbose(true)
.execute();
}
}