Skip to content

Support for JUnit 5 @Nested classes #173

@midovlvn

Description

@midovlvn

Hi,

Nested classes does not works with Modulith 0.5

//@SpringBootTest - it works both nested and not-nested
@ApplicationModuleTest class MyBeanTest {

    @Test void test() {} // it pass

    @Nested class MyNested {

        @Test void nestedTest() {} // it fails
    }
}

A component required a bean of type 'org.springframework.modulith.test.ModuleTestExecution' that could not be found.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions