Compare commits
No commits in common. "edbc515eba51e1a1ca6a5377592ef6b6f7d5aa18" and "d373dd26c654af20bb234f48c1c77a4c567c4c57" have entirely different histories.
edbc515eba
...
d373dd26c6
4 changed files with 12 additions and 28 deletions
14
.github/workflows/bld.yml
vendored
14
.github/workflows/bld.yml
vendored
|
@ -4,13 +4,11 @@ on: [ push, pull_request, workflow_dispatch ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-bld-project:
|
build-bld-project:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
java-version: [17, 21, 24]
|
java-version: [17, 21, 24]
|
||||||
kotlin-version: [ 1.9.25, 2.0.21, 2.1.20 ]
|
|
||||||
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source repository
|
- name: Checkout source repository
|
||||||
|
@ -24,14 +22,6 @@ jobs:
|
||||||
distribution: "zulu"
|
distribution: "zulu"
|
||||||
java-version: ${{ matrix.java-version }}
|
java-version: ${{ matrix.java-version }}
|
||||||
|
|
||||||
- name: Download dependencies [examples]
|
|
||||||
working-directory: examples
|
|
||||||
run: ./bld download
|
|
||||||
|
|
||||||
- name: Run PIT tests [examples]
|
|
||||||
working-directory: examples
|
|
||||||
run: ./bld compile pit
|
|
||||||
|
|
||||||
- name: Download dependencies
|
- name: Download dependencies
|
||||||
run: ./bld download
|
run: ./bld download
|
||||||
|
|
||||||
|
|
|
@ -108,13 +108,10 @@ public class PitestOperationBuild extends Project {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void test() throws Exception {
|
public void test() throws Exception {
|
||||||
var os = System.getProperty("os.name");
|
|
||||||
if (os != null && os.toLowerCase().contains("linux")) {
|
|
||||||
new ExecOperation()
|
new ExecOperation()
|
||||||
.fromProject(this)
|
.fromProject(this)
|
||||||
.command("scripts/cliargs.sh")
|
.command("scripts/cliargs.sh")
|
||||||
.execute();
|
.execute();
|
||||||
}
|
|
||||||
super.test();
|
super.test();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -432,9 +432,9 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
if (project_ != null) {
|
if (project_ != null) {
|
||||||
args.add(javaTool());
|
args.add(javaTool());
|
||||||
args.add("-cp");
|
args.add("-cp");
|
||||||
args.add(String.format("%s%s%s%s%s%s%s", new File(project_.libTestDirectory(), "*"), File.pathSeparator,
|
args.add(String.format("%s:%s:%s:%s", new File(project_.libTestDirectory(), "*"),
|
||||||
new File(project_.libCompileDirectory(), "*"), File.pathSeparator, project_.buildMainDirectory(),
|
new File(project_.libCompileDirectory(), "*"), project_.buildMainDirectory(),
|
||||||
File.pathSeparator, project_.buildTestDirectory()));
|
project_.buildTestDirectory()));
|
||||||
args.add("org.pitest.mutationtest.commandline.MutationCoverageReport");
|
args.add("org.pitest.mutationtest.commandline.MutationCoverageReport");
|
||||||
|
|
||||||
if (!options_.containsKey(SOURCE_DIRS)) {
|
if (!options_.containsKey(SOURCE_DIRS)) {
|
||||||
|
|
|
@ -18,8 +18,6 @@ package rife.bld.extension;
|
||||||
|
|
||||||
import org.assertj.core.api.AutoCloseableSoftAssertions;
|
import org.assertj.core.api.AutoCloseableSoftAssertions;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.jupiter.api.condition.EnabledOnOs;
|
|
||||||
import org.junit.jupiter.api.condition.OS;
|
|
||||||
import rife.bld.BaseProject;
|
import rife.bld.BaseProject;
|
||||||
import rife.bld.Project;
|
import rife.bld.Project;
|
||||||
import rife.bld.WebProject;
|
import rife.bld.WebProject;
|
||||||
|
@ -66,7 +64,6 @@ class PitestOperationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@EnabledOnOs(OS.LINUX)
|
|
||||||
void checkAllParameters() throws IOException {
|
void checkAllParameters() throws IOException {
|
||||||
var args = Files.readAllLines(Paths.get("src", "test", "resources", "pitest-args.txt"));
|
var args = Files.readAllLines(Paths.get("src", "test", "resources", "pitest-args.txt"));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue