★ wanayoo — archive 1999 https://github.com/microsoft/vscode-java-debug/issues/111Nouvelle recherche | Portail wanayoo
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

should not include test classes in classpaths when auto resolve maven project #111

Closed
testforstephen opened this issue Oct 25, 2017 · 8 comments
Assignees
Labels
Milestone

Comments

@testforstephen
Copy link
Contributor

@testforstephen testforstephen commented Oct 25, 2017 •

Original notes from @claycephas ,
#108 (comment)

Current implementation just invoked JavaRuntime.computeDefaultRuntimeClassPath(javaProject), the result is not accurate. Need fix these two issues:

  1. When debugging a maven-based project with VS Code, it is including test classes in the classpaths.

  2. For maven project with multiple modules, the auto-generated classpaths by the debugger didn't contain the depended modules' classpaths.

@supersonicclay
Copy link

@supersonicclay supersonicclay commented Nov 2, 2017

Is there a way to make this conditional so that some launch configurations include the test classes and some don't? I'm thinking we would want to support debugging the implementation code (without tests) or debugging unit tests (which should include tests).

@testforstephen
Copy link
Contributor Author

@testforstephen testforstephen commented Nov 3, 2017

We'll add special support for JUnit. See task #76

@gorkem
Copy link
Collaborator

@gorkem gorkem commented Mar 11, 2018

I think @fbricon has adopted JDT.LS and m2e to exclude test classes.

@yaohaizh
Copy link

@yaohaizh yaohaizh commented Mar 21, 2018

Close this as the LS filtered test classes.

@yaohaizh yaohaizh closed this Mar 21, 2018
@supersonicclay
Copy link

@supersonicclay supersonicclay commented Mar 28, 2018

@yaohaizh I'm still seeing /myproject/target/test-classes listed in the classpaths with redhat.java@0.21.0 and vscjava.vscode-java-debug@0.7.0.

@yaohaizh yaohaizh reopened this Mar 29, 2018
@yaohaizh
Copy link

@yaohaizh yaohaizh commented Mar 29, 2018

Need further verify this issue.

@andxu
Copy link
Contributor

@andxu andxu commented Jun 19, 2018

The bug is still unfixed:

image

image

@andxu andxu removed this from the 0.3.0 milestone Jun 19, 2018
@andxu andxu added the voting label Jun 20, 2018
@andxu andxu added this to the 0.12.0 milestone Aug 7, 2018
@akaroml akaroml mentioned this issue Aug 8, 2018
11 of 14 tasks complete
@andxu andxu assigned andxu and unassigned ansyral Aug 9, 2018
@andxu andxu closed this Aug 17, 2018
@andxu andxu mentioned this issue Aug 28, 2018
17 of 17 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants
You can’t perform that action at this time.