1111
you are viewing a single comment's thread
view the rest of the comments
[-] ryannathans@aussie.zone 1 points 1 year ago

You should have a unit test you can run until failure

[-] folkrav@lemmy.world 6 points 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 5 points 1 year ago* (last edited 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

this post was submitted on 11 Oct 2023
1111 points (98.1% liked)

Programmer Humor

32509 readers
389 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS