Fix running tests from Gradle plugin

This commit is contained in:
Alexey Andreev 2023-04-11 09:46:45 +02:00
parent fcb750675c
commit 4756c9009a
2 changed files with 2 additions and 3 deletions

View File

@ -31,14 +31,14 @@ class TeaVMTestConfigurator {
new File(project.getBuildDir(), "tests/teavm"));
test.getSystemProperties().putIfAbsent("teavm.junit.threads", "1");
test.getSystemProperties().putIfAbsent("teavm.junit.js.enabled",
test.getSystemProperties().putIfAbsent("teavm.junit.js",
tests.getJs().getEnabled().get());
test.getSystemProperties().putIfAbsent("teavm.junit.js.runner",
tests.getJs().getRunner().map(TeaVMTestConfigurator::runnerToString).get());
test.getSystemProperties().putIfAbsent("teavm.junit.js.decodeStack",
tests.getJs().getDecodeStack().get());
test.getSystemProperties().putIfAbsent("teavm.junit.wasm.enabled",
test.getSystemProperties().putIfAbsent("teavm.junit.wasm",
tests.getWasm().getEnabled().get());
test.getSystemProperties().putIfAbsent("teavm.junit.wasm.runner",
tests.getWasm().getRunner().map(TeaVMTestConfigurator::runnerToString).get());

View File

@ -119,7 +119,6 @@ public class TeaVMTestRunner extends Runner implements Filterable {
private static final String OPTIMIZED = "teavm.junit.optimized";
private static final String FAST_ANALYSIS = "teavm.junit.fastAnalysis";
private static final int stopTimeout = 15000;
private Class<?> testClass;
private boolean isWholeClassCompilation;
private ClassHolderSource classSource;