-
Notifications
You must be signed in to change notification settings - Fork 130
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
Add modulePath field in java.test.config #1101
Comments
@Empressia Would you mind to share a sample project for this issue? |
@jdneo 簡単なのを作ってみました。これでどうでしょうか。 |
Closed and tracked by #1199. A rough idea is to fully honor the launch configuration of Debugger for Java thus the user can set modulepaths separately in the setting. |
@Empressia Will it work for you if Debugger expose a setting to specify modulePaths in the workspace setting? And another question, in your case, will you need to configure multiple different modulePaths when running towards different cases? |
回答になるかわかりませんが、デバッガーはmodulePathを生成していると考えています。 検出しないのであれば、差分を追加設定する必要があります。 I don't know if it will be an answer, but I think the debugger is generating a modulePath. If you don't want to detect it from gradle correctly, you're going to need to set additional differences. |
It's because sometime, for some reason, the upstream The reason I ask this question is to figure out which extension should own this setting. It makes more sense to be owned by debugger because it's debugger to run the tests at the end(the test runner is just resolve the launch configuration and pass it to the debugger). But if the module path setting is provided by debugger and test runner leverage that setting, a limitation is that the user can only have one modulepath setting per workspace. (I'm not sure if there are cases that a project needs to have different module paths when running different test cases) |
短く回答します。 あなたが言うとおりの理由で、わたしは、モジュールパスを指定する必要があり、 I will answer short. For the reasons you say, I need to specify a module path, |
End game verification steps:
|
環境
『build/module/』に依存関係にあるモジュールを配置しています。
問題
テスト用に、以下のように設定していますが、
settings.json
テストを実行すると、以下のようなメッセージが出て、失敗してしまいます。
その他
なお、テストではない、通常の起動設定では、以下のように設定していて、正常に動作しています。
launch.json
いろいろ試していると、vmArgs自体は、テスト実行時に、反映されているようなので、
"--module-path"が後続のオプションで上書きされているのかわかりませんが、無効化されているように見えます。
指定の仕方に問題があるのでしょうか……。
The text was updated successfully, but these errors were encountered: