[讀書筆記] The pillars of good tests [讀書筆記] The pillars of good tests 1. Writing trustworthy tests 2. Writing maintainable tests [Maintainability] Nonmaintainable tests are nightmares because they can ruin project schedules, or... Read More
[讀書筆記] Interaction testing using mock objects [讀書筆記] Interaction testing using mock objects [前言] 在前一章Stubs 我們使用了Stub 來打破了Dependency 但是現實上 卻有很多的function是 沒有回傳值 沒有存狀態 針對這些Function該如何測試呢? 答案是 Mock Objects 1.1 Value-based vs. state-based... Read More
[上課筆記] Think on your feet Think on your feet 1. What Think on your feet 著重的焦點是思考 能讓你迅速地理性思考 關鍵在於 "結構" 先打樁 列出要說明的Main Idea 再填入內容 2. Why 2.1 Think on your feet的好處? 幫助你思考清楚 表達想法的三個重點: Clarity 清晰 清楚地說明 讓人理解 Brevity 簡潔 精準表達 Impact 有力 留下深刻印象 2.2 為什麼要運用計畫? 結構能讓你將一堆資訊變得井然有序 1.... Read More