Skip to content
DevMeme
3897 of 7590
Testing Post #4243 · source on Telegram

Unit Tests Across The Bell Curve

Description

The image is a bell-curve meme about the relationship between actual code and unit tests. Along the curve are three small paired panels labeled "ACTUAL CODE" and "UNIT TESTS": the left low-IQ side shows lots of code and an empty tests panel, the middle shows little actual code and a large filled tests panel, and the right high-IQ side again shows lots of code with an empty tests panel. The blue curve includes visible percentage labels such as 34%, 14%, 2%, and 0.1%, with an IQ-like scale running from 55 through 145. The joke is a cynical testing take: beginners skip tests out of ignorance, process-heavy teams may drown in tests, and the supposed genius archetype skips them with enough confidence to make it sound intentional.

Comments

24
Anonymous ★ Top Pick Both tails ship without tests; only the right tail has a slide deck calling it risk acceptance.
  1. Anonymous ★ Top Pick

    Both tails ship without tests; only the right tail has a slide deck calling it risk acceptance.

  2. @sylfn 4y

    change 145iq to both empty

    1. @briskovic 4y

      or what

      1. @sylfn 4y

        or nothing

  3. @CcxCZ 4y

    Left: Lots of tests. Middle: Formal proofs of correctness. Right: "Beware of bugs in the above code; I have only proved it correct, not tried it."

  4. @CVABIK 4y

    I’m using this approach

    1. @atrens 4y

      You also can try this:

      1. @sylfn 4y

        this is what i have talked about

        1. @sylfn 4y

          * if grammar is wrong ignore

      2. @CVABIK 4y

        I tried that too but my boss said it is not the best practice…

        1. @sylfn 4y

          your boss just konws nothig about bestest practices

      3. @sylfn 4y

        300iq mode

      4. @dugeru42 4y

        no tests bcause no bugs

      5. dev_meme 4y

        just perfect

  5. @sylfn 4y

    https://test.mensa.no/ test your iq

  6. @sylfn 4y

    0.2 + 2 + 14 + 34 + 34 + 14 + 2 + 0.2 = 2*(34+14+2+0.2) = 2*(48+2.2) = 2*50.2 = 100.4

    1. @sylfn 4y

      why do percentages sum to >100?

    2. @alihesami 4y

      0.1*

      1. @sylfn 4y

        doesnt change that much

        1. @alihesami 4y

          yup🙄

  7. @neekoisthebestdecision 4y

    I don't write unit tests, I only use integration and e2e tests. Unit tests are useless waste of time in 99% cases

  8. @neekoisthebestdecision 4y

    iq 120 btw

  9. @CcxCZ 4y

    Buuuuut it'd mean having to actually fix the bugs found.

    1. @affirvega 4y

      ... what if there is a bug in unit tests

Use J and K for navigation