• ChickenLadyLovesLife@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 day ago

    I had a coworker who was obsessed with writing unit tests. He was the lead developer on a project which was supposed to take three months and at one point had gone past the two year mark without producing working code. At one point during a meeting with the increasingly (and legitimately) unhappy client, he blurted out “but we’ve written six times as much test code as actual code!” He was not exaggerating either. Believe it or not, this made the client even less happy.

    • LH0ezVT@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      14 hours ago

      I think my last programming job (a couple of years ago) had a healthy relationship to tests. You had to do meet a certain coverage percentage, and if you had particularly interesting pieces of code, they should better be tested. But they acknowledged that 100% is just stupid, and that testing the same boilerplate over and over was a waste of time.