• marcos@lemmy.world
    link
    fedilink
    arrow-up
    34
    ·
    1 year ago

    The problem is, how do you fix it if you can’t make it break?

    The worst thing is when somebody comes to you saying “yeah, I had this problem yesterday, but it’s working now”.

      • folkrav@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        1 year ago

        Fully agree, but they’re usually kind of annoying to track regardless. On the opposite side, sometimes even getting it to trigger on purpose to be able to add a regression test can be pretty tricky, depending on the cause. Timing or time/date based stuff is a common culprit…

        • ryannathans@aussie.zone
          link
          fedilink
          arrow-up
          5
          ·
          edit-2
          1 year ago

          Don’t tell me about time and date, I am still recovering from some moron that used datetime.now() for some unit test data setup and sometimes two records (which needed to have the same time) had very slightly varying time which caused all sorts of intermittent test failures that were very tricky to nail down. Database triggers were failing causing failures in all sorts of tests in a random fashion