Skip to content

Launcher API with @SpringBootTest #3555

Closed Answered by sbrannen
wazzeps asked this question in Q&A
Discussion options

You must be logged in to vote

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?

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wazzeps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants