diff options
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java b/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java index 80c2fbd..46b35e4 100644 --- a/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java +++ b/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java @@ -27,6 +27,7 @@ public class ExampleTests { HobgoblinCompiler.compile(exampleSet.path()); verifyJavaOutput(exampleSet); + verifyJavaJunitOutput(exampleSet); verifyRustOutput(exampleSet); } @@ -34,6 +35,11 @@ public class ExampleTests { verifyOutput(exampleSet, "java", List.of("mvn", "compile", "exec:java")); } + private void verifyJavaJunitOutput(ExampleSet exampleSet) throws NoSuchAlgorithmException, IOException, InterruptedException { + // TODO: allow example to declare its structure + verifyOutput(exampleSet, "java-junit", List.of("mvn", "test")); + } + private void verifyRustOutput(ExampleSet exampleSet) throws NoSuchAlgorithmException, IOException, InterruptedException { verifyOutput(exampleSet, "rust", List.of("cargo", "run")); } |
