• kibiz0r@midwest.social
    link
    fedilink
    English
    arrow-up
    7
    ·
    3 days ago

    Yes, but you do need to be careful with what level you test at. Too high level and the tests may be slow, flaky, and difficult to focus onto small details. Too low level and they may just bake-in the existing implementation.

    • thenextguy@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      3 days ago

      That was such a huge problem on my last job. Most of the unit tests just executed the code and didn’t really test anything and any time you changed the implementation everything broke.

      Thankfully it was truly my last job. 😊