-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working well in spring boot junit test #76
Comments
@danielludan could you help share a sample about it? Thanks. |
Having the same problem. Tests are decorated with
(RunWith from Junit) Output
|
Here is an example of application.properties under src/test/resources which I believe is either not being load or not filtered when I click on Run Test. There is maven properties filtering in it. And those properties are in a profile active by default.
Test runs fine if I launch it with maven command line. Here is launch.test.json
I don't know if I need to configure something or how to do it |
There is a workaround here: #534 (comment) Closing this issue and let's track it in #534 |
It seems the spring boot context can't read configuration properly when running case, the test case src structure is followed maven default standard. The case can be executed on Eclipse IDE so it can't be case issue. Not sure if there is someway to config resource in test running to solve the issue. Thanks for your attention.
The text was updated successfully, but these errors were encountered: