-
I'm using @SpringBootTest(classes = {...})
public abstract class BaseTest {
// ...
} public class AuthorizationTest extends BaseTest {
@Test
// ...
} Is there any way, using the Launcher API (or other features), to run tests by their method names obtained at runtime before test execution, while being able to use Spring context? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, just use the standard features of the Or if you're running your tests in an IDE, you can typically right-click on the method you wish to run and select the appropriate menu item to run the test. If Spring Boot's testing support is configured for the test class, it's also configured for the execution of individual test methods. |
Beta Was this translation helpful? Give feedback.
Yes, just use the standard features of the
Launcher
API to select the methods you wish to run.Or if you're running your tests in an IDE, you can typically right-click on the method you wish to run and select the appropriate menu item to run the test.
If Spring Boot's testing support is configured for the test class, it's also configured for the execution of individual test methods.