microsoft / microsoft/vscode-java-test
Maven forkCount and reuseForks apparently not respected
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 340
- フォーク
- 173
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 18
説明
Hello,
I am using systemstubs library.
As its author said, because of the way the library works, tests using it must be running in a forked vm, one per test.
I have been able to make this work in maven.
I have a multi module pom.xml. In my specific module pom.xml I configured sure-fire as follows:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
<configuration>
<forkCount>2.5C</forkCount>
<reuseForks>false</reuseForks>
</configuration>
</plugin>
This makes tests run by maven in cli run correctly.
However, when I run tests in vs code, they behave exactly as like they did when maven had not been configured with 1 fork, not reusing forks.
it seems as if not only is vs code not forking vms, it is running even methods in paralel, because tests in the same class are conflicting, while they should run sequentially in one thread, one after the other, in a class exclusive jvm process as maven is doing.
This makes me believe that either
- vscode has its own runner and does not delegate to maven the test running OR
- Some how delegation is ignoring the specific configuration in the module's pom.xml.
I have been searching a way to let vscode test runner know tthat either it should fork jvm process and run one test in each vm or it should delegate and follow what is specified in pom.xml.
Another desired and may be faster solution is to find (something I haven't found either) a way of asking vscode to just ignore these tests when running tests, so that we stop having failures on the test result.
Can you please provide me with information on how to proceed?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
モジュールの pom.xml、maven-surefire-plugin の設定、VS Code test runner を使って動作を再現し、CLI による Maven の実行と VS Code による実行を比較します。VS Code runner が Maven に委譲しているかどうか、また forkCount、reuseForks、テストの除外をどのように処理するかを追跡します。サポートされている動作または制限が明確になり、要求された設定または回避策が明確に文書化されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, vscode
- 領域
- devtools, testing-qa
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100