ssi-schaefer / lcdsl

Eclipse Launch Configuration DSL (Xtext based)
Eclipse Public License 1.0
23 stars 12 forks source link

Test class not accepting all JUnit5 variants #50

Closed frankbenoit closed 2 years ago

frankbenoit commented 2 years ago

In the LCDSCL the block

Test {
    class my.TestClass;
}

does not accept all JUnit5 test classes.

E.g. in JUnit5 test class/method can be non-public, but package visible only. Please consider this example:

class TestClass {
    class Base {
        @Test
        void testMethod1() {}
        @Test
        void testMethod2() {}
    }
    @Nested
    class Variant1 extends Base {
        // configuration only, no test method
    }
    @Nested
    class Variant2 extends Base {
        // configuration only, no test method
    }
}
mduft commented 2 years ago

True, LcDSL currently only supports the JUnit Plugin Test Type from PDE, and the SWTBot Junit Tests. Additional support can be added (... when time permits and/or somebody cares to contribute ;)).