summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java b/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java
index 999ae83..64f7b2c 100644
--- a/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java
+++ b/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java
@@ -24,10 +24,14 @@ public class ExampleTests {
}
private void runTest(ExampleSet exampleSet) throws IOException, InterruptedException, NoSuchAlgorithmException {
- var javaProjectPath = exampleSet.path().resolve("output/java");
-
HobgoblinCompiler.compile(exampleSet.path());
+ verifyJavaOutput(exampleSet);
+ }
+
+ private void verifyJavaOutput(ExampleSet exampleSet) throws NoSuchAlgorithmException, IOException, InterruptedException {
+ var javaProjectPath = exampleSet.path().resolve("output/java");
+
var currentHash = hashJavaProject(javaProjectPath);
var lastTestRunPath = javaProjectPath.resolve("last-test-run.properties");