[jvm] duplicated filename creates exceptions when updating snapshot
- 主要言語
- Kotlin
- スター
- 101
- フォーク
- 18
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
There is a possible issue that I encountered with duplicated file names of tests. (in different packages). The assertion was marked for overwrite with `toBe_TODO()` and the following exception was thrown:
```
[com.diffplug.selfie.junit5.SelfieTestExecutionListener] threw exception for method: testPlanExecutionFinished(org.junit.platform.launcher.TestPlan@65b49da9) java.lang.AssertionError: Expected to find inline assertion on line ...
```
With some debugging i found that there was a file with a identical name red with different content instead of the correct one, before the exception was thrown.
Also I'm not sure if this a known limitation or a bug
コントリビューションガイド
調査の方向性
異なるパッケージで同じファイル名を使用するテストによって、まずスナップショットの更新を再現します。testPlanExecutionFinished の実行時に、スナップショットファイルがどのように選択され、インラインアサーションがどのように特定されるかを追跡します。重複したファイル名が正しいコンテンツに解決され、上書きアサーションが報告された例外なしに完了すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- kotlin
- 領域
- testing
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100