• GissaMittJobb
    link
    fedilink
    arrow-up
    13
    ·
    5 days ago

    A limitation of testing is that you can only write tests for cases that you can think of, and cases you can think of ways to write tests for.

    It’s still valuable despite this limitation, of course.

    • FizzyOrange@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      5 days ago

      That’s not entirely true, e.g. you can do fuzz testing or constrained random testing. Maybe you aren’t including those in “testing”?

      • GissaMittJobb
        link
        fedilink
        arrow-up
        2
        ·
        5 days ago

        I was mostly thinking about hand-written tests and manual test procedures, but yeah, fuzzing can help you catch issues as well and you don’t necessarily consciously know about the test cases you put into the system in that case.

        Then again, you have to design the fuzzing input consciously so I guess that’s kind of a “what you can think about”-limitation.

        Good point regardless, thanks