Skip to content

TestExecutionCondition should fall back to execute the test if more than one main class is found #1391

@odrotbohm

Description

@odrotbohm

If multiple types annotated with @SpringBootConfiguration are found for a test execution, we currently fail as AnnotatedClassFinder.findFromClass(…) throws an exception in this case. We should fall back to simply executing all tests for which that is the case, similar to the one that doesn't find such a class at all.

Metadata

Metadata

Assignees

Labels

in: junit extensionJUnit extension optimizing test executiontype: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions