606
you are viewing a single comment's thread
view the rest of the comments
[-] xmunk@sh.itjust.works 30 points 3 months ago

Also, all the automated tests were commented out.

[-] grrgyle@slrpnk.net 24 points 3 months ago

Checking the ci logs for the past week, like:

86 test suites passed successfully
    ❌ 0 failures
    ✅ 0 success
    🤷‍♂️ 1785 skipped
[-] TheSlad@sh.itjust.works 19 points 3 months ago

Ive heard of stories where people would have an imposed test coverage percentage requirement... and they would just have a single dummy method that printed "." to the console thousands of times. They then have a single test for that one method, and whenever their codebase grows to big, they add more lines to it so that the dummy method has enough lines to meet the test coverage requirement.

[-] xmunk@sh.itjust.works 9 points 3 months ago

Percentage of lines covered by tests is such a terrible metric.

[-] TheSlad@sh.itjust.works 8 points 3 months ago

All metrics are terrible when used for anything other than objective analysis

[-] sukhmel@programming.dev 3 points 3 months ago

Yeah, every metric that can be applied automatically ends up becoming useless if people are incentivized to break it

[-] Fontasia@feddit.nl 8 points 3 months ago
[-] sukhmel@programming.dev 1 points 3 months ago

There's always one. Thanks for finding it ❤️

this post was submitted on 02 Aug 2024
606 points (100.0% liked)

Programmer Humor

19589 readers
466 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS