# 將測試用作證據

Taiga Learning · 工作表
https://taiga.training/zh-TW/lessons/tests-as-evidence/

使用虛構或核准資訊。不要把機密值放入此工作表。

## 學習目標
- 將每項重要需求連結到有意義的檢查。
- 區分單元、整合及端對端測試證據。
- 找出與實作重複相同錯誤假設的測試。

## 練習
選一個生成測試，說明它檢查的需求。在隔離分支中暫時加入相關缺陷，確認測試因預期原因失敗，再還原程式碼。記錄測試仍未涵蓋的部分。

## 你的回答
- 情境與範圍：
- 假設與未解問題：
- 提出的答案或決定，以及理由：

## 驗證回答
| 陳述或條件 | 證據或測試 | 結果或缺口 | 負責人 |
| --- | --- | --- | --- |
| | | | |
| | | | |
| | | | |

## 下一步操作
- 操作、負責人與日期：
- 何時重新檢視此回答？

## 應保留的原則
只有斷言能拒絕相關缺陷，通過的測試才有用。

## 來源
- [Google Engineering Practices: Review tests for useful assertions](https://google.github.io/eng-practices/review/reviewer/looking-for.html)
- [Google Testing Blog: Test scope and feedback](https://testing.googleblog.com/2015/04/just-say-no-to-more-end-to-end-tests.html)

此工作表協助學習。完成工作表本身，不授權修改正式環境。
