Skip to content
DevMeme
6390 of 7590
Testing Post #7007 · source on Telegram

How to Achieve a 100% Test Pass Rate, Instantly

Description

A screenshot of a Twitter interaction. The main focus is a tweet from user 'Lazarz' (@Laz4rz) which reads, "commenting out tests until test pass rate improves". Above this text, another user, 'Xeophon' (@xeophon_), has quote-tweeted it with a reaction image. The image is a simple, abstract drawing: a white background with a black-outlined speech or thought bubble containing a large, orange, multi-pointed asterisk, resembling an explosion or a starburst. This visual serves as a non-verbal, emphatic agreement or a representation of a mind-blown moment. The humor stems from the widely-recognized bad practice of disabling failing tests to artificially improve metrics. For experienced developers, it's a cynical and relatable joke about the pressures of maintaining high test scores and the shortcuts sometimes taken, which ultimately undermine the purpose of testing and code quality

Comments

9
Anonymous ★ Top Pick The fastest way to fix all your bugs is to turn your test suite into a 'TODO: uncomment this' file
  1. Anonymous ★ Top Pick

    The fastest way to fix all your bugs is to turn your test suite into a 'TODO: uncomment this' file

  2. Anonymous

    Nothing says “senior engineer” like converting brittle assertions into well-documented /* TODO: re-enable someday */ blocks and calling it a velocity win

  3. Anonymous

    Ah yes, the classic 'Schrödinger's Test Suite' - where tests simultaneously pass and fail until someone actually looks at the commented-out code during the next audit. Nothing says 'production-ready' quite like a 100% pass rate achieved through selective amnesia about what actually needs testing

  4. Anonymous

    Ah yes, the classic 'improve test pass rate by reducing the denominator' strategy - mathematically sound, architecturally catastrophic. It's like achieving 100% uptime by commenting out your monitoring alerts. Sure, your dashboard looks green, but somewhere a production database is quietly weeping. This is Goodhart's Law speedrunning: when a measure becomes a target, it ceases to be a good measure. Next sprint's OKR: 'Achieve zero bugs by redefining all bugs as features.' The real kicker? Some PM will actually celebrate the improved metrics in the next all-hands while the on-call rotation silently plans their resignation

  5. Anonymous

    TDD's final form: Test-Driven Deletion, scaling pass rates to infinity without touching a bug

  6. Anonymous

    We hit the OKR by migrating from TDD to CCD - Comment-Driven Development; pytest now runs with -k 'not failing' and the CI is gloriously green

  7. Anonymous

    Set pass rate as the OKR and someone ships -DskipTests in Jenkins - 100% green builds, 0% confidence

  8. @Diotost 1y

    Is this like git bisection to find a failing test?

  9. @chukav 10mo

    Is this the tail of the cat that took a shit on the wall?

Use J and K for navigation