From 6d2815bc5cfd21483f59fe4c1314e3b97d81dcfa Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Thu, 22 Nov 2018 19:51:33 +0300 Subject: [PATCH] Support running JUnit3 tests and improve support of JUnit4 --- .idea/runConfigurations/build_teavm_fast.xml | 1 - core/pom.xml | 2 +- .../org/teavm/testing/JUnitTestAdapter.java | 60 ---- .../java/org/teavm/testing/TestRunner.java | 20 -- .../main/java/org/teavm/vm/TeaVMBuilder.java | 5 +- html4j/pom.xml | 6 - .../teavm/html4j/testing/KOTestAdapter.java | 54 ---- .../teavm/html4j/testing/KOTestRunner.java | 37 --- tests/pom.xml | 15 + .../java/org/teavm/tests/JUnit3BaseTest.java | 20 +- .../org/teavm/tests/JUnit3DerivedTest.java | 24 +- .../java/org/teavm/tests/JUnitBaseTest.java | 24 +- .../org/teavm/tests/JUnitDerivedTest.java | 23 +- .../java/org/teavm/junit/TeaVMTestRunner.java | 262 ++++++++++++++---- .../java/org/teavm/junit/TestEntryPoint.java | 17 +- .../junit/TestEntryPointTransformer.java | 100 +++++-- 16 files changed, 384 insertions(+), 286 deletions(-) delete mode 100644 core/src/main/java/org/teavm/testing/JUnitTestAdapter.java delete mode 100644 core/src/main/java/org/teavm/testing/TestRunner.java delete mode 100644 html4j/src/main/java/org/teavm/html4j/testing/KOTestAdapter.java delete mode 100644 html4j/src/main/java/org/teavm/html4j/testing/KOTestRunner.java rename core/src/main/java/org/teavm/testing/SimpleTestRunner.java => tests/src/test/java/org/teavm/tests/JUnit3BaseTest.java (63%) rename core/src/main/java/org/teavm/testing/TestAdapter.java => tests/src/test/java/org/teavm/tests/JUnit3DerivedTest.java (59%) rename html4j/src/test/java/org/teavm/html4j/testing/KOTestAdapterTest.java => tests/src/test/java/org/teavm/tests/JUnitBaseTest.java (65%) rename core/src/main/java/org/teavm/testing/TestLauncher.java => tests/src/test/java/org/teavm/tests/JUnitDerivedTest.java (55%) diff --git a/.idea/runConfigurations/build_teavm_fast.xml b/.idea/runConfigurations/build_teavm_fast.xml index 5489ca572..f18528139 100644 --- a/.idea/runConfigurations/build_teavm_fast.xml +++ b/.idea/runConfigurations/build_teavm_fast.xml @@ -15,7 +15,6 @@