From d103306c3e67b34b8e332793a21e1f69a3af4fd4 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Tue, 23 Feb 2016 21:40:51 +0300 Subject: [PATCH] Improving JUnit test runner --- .idea/codeStyleSettings.xml | 7 + .idea/compiler.xml | 1 + jso/apis/pom.xml | 7 - tests/pom.xml | 37 --- .../java/text/DecimalFormatParseTest.java | 3 + .../classlib/java/text/DecimalFormatTest.java | 3 + .../classlib/java/text/NumberFormatTest.java | 3 +- .../classlib/java/util/CurrencyTest.java | 10 +- .../teavm/classlib/java/util/LocaleTest.java | 3 + .../classlib/java/util/TestServiceImpl.java | 8 - .../org/teavm/jso/test/AnnotationsTest.java | 2 + .../org/teavm/jso/test/ConversionTest.java | 2 + .../java/org/teavm/jso/test/FunctorTest.java | 2 + .../teavm/jso/test/ImplementationTest.java | 10 +- .../teavm/jso/test/JavaInvocationTest.java | 2 + .../metadata/MetadataGeneratorTest.java | 2 + .../test/java/org/teavm/tests/JSOTest.java | 6 +- .../teavm/tooling/TeaVMProblemRenderer.java | 4 +- .../java/org/teavm/junit/ExceptionHelper.java | 29 ++ .../main/java/org/teavm/junit/SkipJVM.java | 26 ++ .../java/org/teavm/junit/TeaVMProperties.java | 27 ++ .../java/org/teavm/junit/TeaVMProperty.java | 22 ++ .../java/org/teavm/junit/TeaVMTestRunner.java | 276 +++++++++++++++--- .../java/org/teavm/junit/TestEntryPoint.java | 35 +++ .../junit/TestEntryPointTransformer.java | 81 +++++ .../teavm/junit/TestExceptionDependency.java | 64 ++++ .../org/teavm/junit/TestExceptionPlugin.java | 26 ++ .../main/resources/teavm-htmlunit-adapter.js | 0 .../src/main/resources/teavm-run-test.html | 53 ++++ .../main/resources/teavm-selenium-adapter.js | 0 .../src/main/resources/teavm-selenium.js | 0 31 files changed, 636 insertions(+), 115 deletions(-) create mode 100644 tools/junit/src/main/java/org/teavm/junit/ExceptionHelper.java create mode 100644 tools/junit/src/main/java/org/teavm/junit/SkipJVM.java create mode 100644 tools/junit/src/main/java/org/teavm/junit/TeaVMProperties.java create mode 100644 tools/junit/src/main/java/org/teavm/junit/TeaVMProperty.java create mode 100644 tools/junit/src/main/java/org/teavm/junit/TestEntryPoint.java create mode 100644 tools/junit/src/main/java/org/teavm/junit/TestEntryPointTransformer.java create mode 100644 tools/junit/src/main/java/org/teavm/junit/TestExceptionDependency.java create mode 100644 tools/junit/src/main/java/org/teavm/junit/TestExceptionPlugin.java rename tools/{maven/plugin => junit}/src/main/resources/teavm-htmlunit-adapter.js (100%) create mode 100644 tools/junit/src/main/resources/teavm-run-test.html rename tools/{maven/plugin => junit}/src/main/resources/teavm-selenium-adapter.js (100%) rename tools/{maven/plugin => junit}/src/main/resources/teavm-selenium.js (100%) diff --git a/.idea/codeStyleSettings.xml b/.idea/codeStyleSettings.xml index f065a51e0..533446d3f 100644 --- a/.idea/codeStyleSettings.xml +++ b/.idea/codeStyleSettings.xml @@ -20,6 +20,13 @@ + + + +