-
Notifications
You must be signed in to change notification settings - Fork 344
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
Wrong/strange classpath in test runner #1127
Comments
@dsyer thanks for reaching out. yes, it's an issue with vscode-java extension, the debugger is reusing the same build output from vscode-java extension. Looks like it doesn't copy the resources to the output directory. redhat-developer/vscode-java#634 is a little old, we need to create a new issue on redhat-developer/vscode-java for that. It would be nice to have a minimum sample project. |
In addition to above problem about the classpath, the order of classpath is also very strange. why |
@lingjiameng There are some issues for Gradle classpath resolving. But the problem should be fixed if we support delegate testing to gradle directly. Please vote for microsoft/vscode-java-test#1045 if you would like to have it. |
The Gradle Test Delegation (both run and debug) has supported now. To use this feature, you need to install the latest Test Runner for Java and Gradle for Java extension. To delegate the tests to Gradle, you can set the default testing profile in Testing explorer: If you do not want to change the default testing profile, you can trigger an one-time execution via: |
[provide a description of the issue]
Environment
Steps To Reproduce
Additional Informations
A break point in the test reveals that the classpath starts with
bin/main
and does not contain the Gradlebuild
dirs. I see the compiled classes atbin/main
but no resources like properties files etc from src/main/resources. What is thisbin/main
? Gradle puts classes inbuild/classes/main
and resources inbuild/resources/main
, so where did thebin
directory come from? If I delete it, it is re-created, so I suspect the VSCode Java extensions are doing that.Related underlying issue: redhat-developer/vscode-java#634
The text was updated successfully, but these errors were encountered: