• mormegil@programming.dev
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    6 days ago

    This might work when the test really describes&tests the business rule, not when the test simply contains a mirror of the implementation with everything replaced by mocks and just checks that the implementation is what it is, conditioning all people changing the code in the future to always have to change the test as well.

    • PolarKraken@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      ·
      6 days ago

      Blech, this is my least favorite kind of testing. I’d much rather have some all-encompassing integration tests even if they’re confusing AF, than the “yep the language still works as advertised” nonsense that this approach often amounts to.