ParameterizedRunnerToParameterized update to account for test class inheritance
メンテナーはふだん 1 日以内に返信
@MBoegers がすでに取り組んでいます。
2024年6月18日 から。
評価
この issue はまだ評価されていません。
説明
Discovered while applying JUnit4To5Migration on Antlr
For tests classes that inherit from a superclass and have a constructor which invokes the superclass constructor:
- compare super constructor parameters with the MethodSource parameters
- modify super constructor if necessary
- add init method to class and superclass if necessary
before:
public class BaseRuntimeTest {
public BaseRuntimeTest(RuntimeTestDescriptor descriptor, RuntimeTestSupport delegate) {
this.descriptor = descriptor;
this.delegate = delegate;
}
}
public class TestPerformance extends BaseRuntimeTest {
public TestPerformance(RuntimeTestDescriptor descriptor) {
super(descriptor,new BaseGoTest());
}
}
after:
public class BaseRuntimeTest {
public BaseRuntimeTest(RuntimeTestSupport delegate) {
this.delegate = delegate;
}
public void initBaseRuntimeTest(RuntimeTestDescriptor descriptor){
this.descriptor = descriptor;
}
}
public class TestPerformance extends BaseRuntimeTest {
public TestPerformance() {
super(new BaseGoTest());
}
public void initTestPerformance(RuntimeTestDescriptor descriptor) {
initBaseRuntimeTest(descriptor);
}
}
- 主要言語
- Java
- スター
- 100
- フォーク
- 109
- 平均マージ
- 3時間 52分
- マージ済み PR(30日)
- 83
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openrewrite/rewrite-testing-frameworks のほかの issue
-
Recipe quality triage: remaining fixes, wiring and polish (A1–O8)再び着手できるかも @tashen247 が 12 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンgood first issue
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
openrewrite/rewrite-testing-frameworks#1211 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
JUnit 4 to 5 Migration: Tests with Multiple @Before Methods Fail Due to Arbitrary Execution Order対応中かも @ApekshaAmbala が 15 日前に担当しました。 オープンjunit recipe
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
openrewrite/rewrite-testing-frameworks#1207 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
JUnit4to5Migration - undiscovered or invalid Kotlin tests対応中かも @hugoncosta が 24 日前に担当しました。 オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
openrewrite/rewrite-testing-frameworks#1188 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
openrewrite/rewrite-testing-frameworks#1167 ·
メンテナーはふだん 1 日以内に返信
-
`ParameterizedRunnerToParameterized` silently skips classes whose `@Parameters` method is inherited, leaving a partially migrated class that対応中かも @mohitduhan19 が 39 日前に担当しました。 オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
openrewrite/rewrite-testing-frameworks#1126 ·
メンテナーはふだん 1 日以内に返信
openrewrite/rewrite-testing-frameworks の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
NationalSecurityAgency/ghidra#10155 ·
メンテナーはふだん 2 日以内に返信
-
bug web-ui
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
jenkinsci/jenkins#27705 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
mod bug
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
elmital/FixMCStats#65 · コメント 3 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
googleads/googleads-mobile-flutter#1541 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
Julow/Unexpected-Keyboard#1490 ·
メンテナーはふだん 4 日以内に返信