Skip to content

Commit

Permalink
Add and use JUnit Standalone JAR
Browse files Browse the repository at this point in the history
  • Loading branch information
sormuras committed Aug 11, 2023
1 parent 1003d19 commit 4edf1ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions bug.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ public static void main(String... args) throws Exception {
var output = Path.of("output-bug.txt");

var builder = new ProcessBuilder();
builder.command().add("java"); // java -cp picocli-4.7.4.jar ASCIIArt.java
builder.command().add("-cp");
builder.command().add("picocli-4.7.4.jar");
builder.command().add("ASCIIArt.java");
builder.command().add("--help");
// java -cp picocli-4.7.4.jar ASCIIArt.java
// java -jar junit-platform-console-standalone-1.10.0.jar execute --scan-modules
builder.command().add("java");
builder.command().add("-jar");
builder.command().add("junit-platform-console-standalone-1.10.0.jar");
builder.command().add("execute");
builder.command().add("--scan-modules");
builder.redirectError(errors.toFile());
builder.redirectOutput(output.toFile());

Expand Down
Binary file added junit-platform-console-standalone-1.10.0.jar
Binary file not shown.

0 comments on commit 4edf1ab

Please sign in to comment.