Regression Test
回帰テスト
レグレッションテストは、コードを直したあとも、前までうまく動いていた機能が壊れていないか確認します。
もう一つの例
以前、やり直しのせいで二重に請求されてしまったことがあります。新しいテストでは、同じ支払いキーを使っても、請求が1回しか行われないかを確認します。
主な部分
- 01Code or behavior under test
- 02Observable evidence
- 03Coverage, failure, and recovery
以下の場合に使用します
繰り返し発生するバグ、安定した契約、主要なフロー、または再び失敗する可能性のあるエッジについて1つ追加します。
以下の場合は使用しないでください
意味のないスナップショットや壊れやすい内部チェックは避けてください。予防を主張する前に、元の失敗を再現してください。
コードで使用する名前
reproduce failure → assert corrected behavior 出荷前に
Check the environment and prepared test data (fixture). Define a result you can observe, failure and edge cases, isolation, stable inputs, useful error details, and cleanup. Set a time budget, owner, and flaky-test rule.
Outcome:Complete the task with 回帰テスト (Regression Test)。 User context:以前、やり直しのせいで二重に請求されてしまったことがあります。新しいテストでは、同じ支払いキーを使っても、請求が1回しか行われないかを確認します。 Validation approach:回帰テスト (Regression Test)。 Why it fits:繰り返し発生するバグ、安定した契約、主要なフロー、または再び失敗する可能性のあるエッジについて1つ追加します。 Do not use it when:意味のないスナップショットや壊れやすい内部チェックは避けてください。予防を主張する前に、元の失敗を再現してください。 Test requirements: Name the system and test environment. Define prepared test data, other inputs, and the result you can observe. Include failure and edge cases, allowed error, isolation, and cleanup. Test operations: Make failures easy to diagnose. Control random or changing inputs. Name an owner. Keep the test fast and simple enough for its release gate. Acceptance criteria: The test fails for the known bug and passes after the fix. It repeats in the target environment, gives useful evidence, and does not expose or change unrelated data. Evidence and limits (evidence boundary):単一の公式標準が全体の用語を管理するわけではありません。その意味はチーム、プラットフォーム、またはフレームワークによって変わる可能性があります。 Unknowns to confirm: Release gate, environment, prepared test data, allowed error, time budget, owner, and flaky-test rule.
このリクエストを確認する
Review how 回帰テスト (Regression Test) is used now. Definition: レグレッションテストは、コードを直したあとも、前までうまく動いていた機能が壊れていないか確認します。 Release checks: Check the environment and prepared test data (fixture). Define a result you can observe, failure and edge cases, isolation, stable inputs, useful error details, and cleanup. Set a time budget, owner, and flaky-test rule. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.