Maven forkCount and reuseForks apparently not respected
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- java, vscode
- 領域
- devtools, testing-qa
調査の方向性
モジュールの pom.xml、maven-surefire-plugin の設定、VS Code test runner を使って動作を再現し、CLI による Maven の実行と VS Code による実行を比較します。VS Code runner が Maven に委譲しているかどうか、また forkCount、reuseForks、テストの除外をどのように処理するかを追跡します。サポートされている動作または制限が明確になり、要求された設定または回避策が明確に文書化されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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?
- 主要言語
- TypeScript
- スター
- 340
- フォーク
- 173
- 平均マージ
- 1日 4時間
- マージ済み PR(30日)
- 15
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/vscode-java-test のほかの issue
-
CodeLens missing and individual method execution freezes on @Nested JUnit 6 classes (macOS)対応中かも @wenytang-ms が 5 日前に担当しました。 オープンai-triaged bug investigating junit test-discovery test-execution
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
microsoft/vscode-java-test#1897 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] The extension uses raw data.再び着手できるかも @wenytang-ms が 89 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンai-triaged bug gradle high-priority test-execution
microsoft/vscode-java-test#1880 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] IllegalAccessException: module java.base does not open java.lang to unnamed module再び着手できるかも @wenytang-ms が 89 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンai-triaged gradle junit test-execution ux
microsoft/vscode-java-test#1878 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
ai-triaged enhancement junit low-priority test-execution ui
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
microsoft/vscode-java-test#1836 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
ai-triaged enhancement gradle investigating junit low-priority test-reporting
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
microsoft/vscode-java-test#1824 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
microsoft/vscode-java-test の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Doist/todoist-cli#576 ·
メンテナーはふだん 1 日以内に返信
-
feature
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
vercel-labs/skills#2370 ·
メンテナーはふだん 1 日以内に返信
-
🐛 Bug supabase/cli
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
CopilotKit/aimock#491 ·
メンテナーはふだん 1 日以内に返信