You are viewing a single thread.
View all comments View context
32 points

Also, all the automated tests were commented out.

permalink
report
parent
reply
25 points

Checking the ci logs for the past week, like:

86 test suites passed successfully
    ❌ 0 failures
    ✅ 0 success
    🤷‍♂️ 1785 skipped
permalink
report
parent
reply
21 points

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.

permalink
report
parent
reply
10 points

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

permalink
report
parent
reply
9 points

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

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.8K

    Monthly active users

  • 812

    Posts

  • 13K

    Comments