Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Mock

 Mock

mock & test double

joyful1227

May 08, 2020
Tweet

More Decks by joyful1227

Other Decks in Programming

Transcript

  1. 。測試名詞介紹: - SUT : System Under Test / Software Under

    Test - DOC:Depended Component 什麼是 測試替⾝ Test double?
  2. 。驗證SUT (System Under Test / Software Under Test) 確保程式邏輯正確。 。不希望DOC

    (Depended Component )成為影響因素。 。減少開發過程中造成的錯誤 為什麼需要 測試替⾝ Test double?
  3. - Dummy Object - Test Stub - Test Spy
 -

    Fake Object - Mock Object 五種測試替⾝ Test double
  4. - Dummy Object - Test Stub - Test Spy
 -

    Fake Object - Mock Object 五種測試替⾝ Test double
  5. - Dummy Object - Test Stub - Test Spy
 -

    Fake Object - Mock Object 五種測試替⾝ Test double
  6. - Dummy Object - Test Stub - Test Spy
 -

    Fake Object - Mock Object 五種測試替⾝ Test double
  7. - Dummy Object - Test Stub - Test Spy
 -

    Fake Object - Mock Object 五種測試替⾝ Test double