テストコードはコードが重複しないことよりも読みやすさを重視するという話。DRY原則に対してDAMP原則。必ずしもDRYにしないというわけではなく、例えば冗長性をなくすためにDRYにするとかはある。

miya-janmiya-jan のブックマーク 2019/12/04 18:49

その他

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

Testing on the Toilet: Tests Too DRY? Make Them DAMP!

    I get what the author is going for here, but I don't totally agree with them. I think the easiest and cleanest approach is to move the list of users out of set up and into the test (as the author r...

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

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