Skip to content
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

Unable to automatically load the modified project configuration, resulting in the downstream plug-in test run for Java: junit4/5 not running normally #1030

Open
rqwsa opened this issue Mar 29, 2024 · 1 comment

Comments

@rqwsa
Copy link

rqwsa commented Mar 29, 2024

When I test JUnit, I need to switch between different environments. When I modify the project configuration, JUnit cannot run normally.

microsoft/vscode-java-test#1665

At first, I thought it was the problem of the downstream "test run for Java" plugin. After many comparisons, I thought it should be the problem of vscode Maven.

Adding configuration still doesn't work,

"java.configuration.updateBuildConfiguration": "automatic",
This should have nothing to do with maven.

I think the project configuration should be updated from POM to make the Maven project and Java project configuration consistent.

Eclipse has the function of update project configuration from POM

After I use eclipse's update project from POM, the JUnit test can run normally with vscode.

@AaronWong002
Copy link

我遇到的情况跟你的描述一样的,采用相同的操作出现相同的结果,不过我找到了造成这种情况的原因,这个是跟vscode的maven设置有关,出现这种不正常的情况是因勾选了这个选项:Java>Import>Maven:Disable Test Classpath Flag  ,拿掉勾选即可Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants