diff options
Diffstat (limited to 'src/test/java')
| -rw-r--r-- | src/test/java/org/shedlang/compiler/backends/ExampleTests.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/java/org/shedlang/compiler/backends/ExampleTests.java b/src/test/java/org/shedlang/compiler/backends/ExampleTests.java index 0d7eba56..be9329d6 100644 --- a/src/test/java/org/shedlang/compiler/backends/ExampleTests.java +++ b/src/test/java/org/shedlang/compiler/backends/ExampleTests.java @@ -37,7 +37,7 @@ public abstract class ExampleTests { private void runTest(File exampleDirectory) throws IOException, InterruptedException { var isWipTest = isDisabled(exampleDirectory.getName()); - var includeWipTests = System.getenv("INCLUDE_WIP_TESTS") != null; + var includeWipTests = includeWipTests(); Assumptions.assumeFalse(isWipTest && !includeWipTests); var backend = backend(); @@ -72,6 +72,11 @@ public abstract class ExampleTests { } } + private static boolean includeWipTests() { + var variable = System.getenv("INCLUDE_WIP_TESTS"); + return variable != null && !variable.equals("0"); + } + private ExecutionResult runExampleBinary(String binary) throws IOException, InterruptedException { var fullCommand = P.<String>vector() .plusAll(binaryRunner()) |
