diff --git a/.travis.yml b/.travis.yml index e6c71e8ae..a99de7177 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,7 +35,7 @@ install: - popd script: - - travis_wait 60 mvn -e test -P \!htmlUnit + - travis_wait 60 mvn -e test -P \!htmlUnit -Dteavm.junit.optimized=false -Dteavm.junit.js.runner=none - BASE_PATH=`pwd` - pushd tests/src/test/js - export DISPLAY=:99.0 diff --git a/tools/junit/src/main/java/org/teavm/junit/TeaVMTestRunner.java b/tools/junit/src/main/java/org/teavm/junit/TeaVMTestRunner.java index 324259230..e58c1f592 100644 --- a/tools/junit/src/main/java/org/teavm/junit/TeaVMTestRunner.java +++ b/tools/junit/src/main/java/org/teavm/junit/TeaVMTestRunner.java @@ -124,6 +124,10 @@ public class TeaVMTestRunner extends Runner implements Filterable { case "htmlunit": runStrategy = new HtmlUnitRunStrategy(); break; + case "": + case "none": + runStrategy = null; + break; default: throw new InitializationError("Unknown run strategy: " + runStrategyName); }