「テストが失敗するのは、システムの意図が達成されない場合のみでなければいけない」 。対応の一例として、実装の詳細はテストしない、外部要因(API など)に依存するコードの場合はモックを使用する、など

jay-esjay-es のブックマーク 2024/01/20 10:31

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

The Golden Rule of Assertions

    What if I told you there was a single rule that can reliably tell apart a good test from a bad one? This is not a trick, not a sales pitch. It’s a rule I’ve been using for years to help me refine m...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう