-
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
Spring Boot Test Fails with NoSuchBeanDefinitionException. #621
Comments
@jdneo could you help a look? |
@ecormaksin May I ask how do you trigger the test? |
@jdneo Thanks for your reply. I trigger the test by clicking 「Run Test」link on VS Code Editor. I uploaded the repository as pubic. Could you check if you possible? The target test is "com.tasklet.batch.service.test.PrintServiceTest"; |
launch.json is below.
And java.test.config is below.
|
Hi @ecormaksin, Thank you for reporting the issue and give us the sample project. After some investigation, I think I might find out the root cause. The root cause is that when the extension running the tests, it will read the This issue might be related to #534 I'll think about how to make a fix and let you know. Thank you. |
More investigation result here: #534 (comment) |
Closing this issue and let's track it in #534 |
I apoligize for too late reply. Thank you so much! |
Any advice would be appreciated.
[provide a description of the issue]
Environment
Steps To Reproduce
@RunWith(SpringRunner.class)
@SpringBootTest
@ContextConfiguration(classes = BatchTestConfig.class)
[attach a sample project reproducing the error]
2018-12-24_TestReport.log
Current Result
NoSuchBeanDefinitionException occurs. But the test finishes with green on the Eclipse IDE.
Expected Result
The test finishes with green(passed).
Additional Informations
The text was updated successfully, but these errors were encountered: