Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

User modifies test code while it is running, which jams the inline snapshot

オープン
#513 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
kotlin
領域
testing

調査の方向性

Issue にはファイル、テスト、エントリーポイントが指定されていません。テストの実行から完了まで、inline snapshot の更新フローを追跡し、その後、テスト開始後に行われた編集を検出する方法を判断してください。完了条件は、ツールがそのケースを特定し、現在の blame 取得エラーを出すのではなく、ユーザーがテストコードを変更したと報告することです。

索引モデルが issue の本文から書いたものです。

説明

enhancement
  1. there is testcode
  2. then it gets compiled
  3. then the test starts running
  4. when the test completes, Selfie modifies the testcode

When selfie modifies test code, it doesn't blindly trust line numbers. It parses the literal which is present, and makes sure that it matches the value it expected before replacing it with a new value.

But just the same, all it can do right now is throw an error, and it takes all the blame. If the user modifies files between 2 and 3, there's not much we can do about it. But if the modification happens between 3 and 4, we should be able to say "hey don't do that!".

主要言語
Kotlin
スター
101
フォーク
18
平均マージ
6日 11時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

diffplug/selfie のほかの issue

diffplug/selfie の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。