@DisabledForJreRange and @EnabledForJreRange using source target rather what java version being used
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- java, typescript, vscode
- 領域
- devtools, testing-qa
調査の方向性
sourceCompatibility と targetCompatibility を 8 のままにして、Java 17 を使用して VS Code でアノテーションの例を再現し、VS Code の Java テストランナーの結果を Gradle と比較します。@DisabledForJreRange と @EnabledForJreRange に対してランナーが Java のバージョンをどのように決定するかを追跡します。完了の条件は、テストがソースまたはターゲットの設定ではなく、実行時の JRE に基づいてスキップまたは含められることです。
索引モデルが issue の本文から書いたものです。
説明
I have tests with:
@DisabledForJreRange(min = JRE.JAVA_8, max = JRE.JAVA_8, disabledReason = "JSH is not supported on Java 8")
and even though I'm running with Java 17 all tests are ignored in vscode but run when running with gradle.
Only way I can get them to be included is to change:
sourceCompatibility = '8'
targetCompatibility = '8'
to
sourceCompatibility = '17'
targetCompatibility = '17'
but it is not consistent.
In any case vscode-java testrunner auto ignore tests that shouldn't be ignored compared to gradle command line.
- 主要言語
- TypeScript
- スター
- 340
- フォーク
- 173
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 18
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/vscode-java-test のほかの issue
-
ai-triaged bug high-priority investigating junit maven test-discovery
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
microsoft/vscode-java-test#1915 · コメント 2 件 ·
-
ai-triaged bug investigating junit test-discovery test-execution
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
microsoft/vscode-java-test#1897 · コメント 1 件 ·
-
ai-triaged bug gradle high-priority test-execution
microsoft/vscode-java-test#1880 · コメント 2 件 · 担当者 1 名 ·
-
ai-triaged gradle junit test-execution ux
microsoft/vscode-java-test#1878 · コメント 3 件 · 担当者 1 名 ·
-
ai-triaged enhancement junit low-priority test-execution ui
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
microsoft/vscode-java-test#1836 · コメント 4 件 ·
microsoft/vscode-java-test の issue をすべて見る
似ている issue
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
-
code-quality refactoring
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
langchain-ai/deepagents#6450 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
vercel/react-tweet#225 ·