Test Desiderata 9/12 Tests Should Be Composable

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ธ.ค. 2024

ความคิดเห็น •

  • @bartholomewtott3812
    @bartholomewtott3812 3 ปีที่แล้ว +14

    Hmm feel like im missing something on this one

    • @edthome8636
      @edthome8636 25 วันที่ผ่านมา +1

      A common antipattern is to test a lot of behavior together over and over. This results in duplication across tests, low signal to noise ratio, more maintenance effort, longer runtimes. Worst case scenario, overreliance on expensive end-to-end tests for various edge cases. For instance filling out the same form again and again with different inputs. The solution is to write tests broken down into composable units. You will have to test that a few combinations work together but not exhaustively. Another plus for writing composable tests is that it helps enforce composability of the source code.

  • @higor129
    @higor129 4 หลายเดือนก่อน

    did this get cut too early?