r/ProgrammerHumor • • Jul 20 '18

Every Time

Post image
52.2k Upvotes

749 comments sorted by

View all comments

6.9k

u/that_one_mister_user Jul 20 '18

The sad thing is that this works some of the time.

22

u/dododindon Jul 20 '18

Which proves that this "testing" fad is not reliable enough for real business.

11

u/rangeDSP Jul 20 '18

If your testing can't catch errors like these it implies that at least one of the following is truel:

  1. The tests are badly written

  2. The code isn't easily testable

  3. if(2==true), then there are messy dependency issues in the code

2

u/motioncuty Jul 20 '18

Now I have to right tests for my jenkins builds!? When does it end?

4

u/rangeDSP Jul 20 '18

Not necessary to write a test, but builds should be part of your continuous integration process, after all the unit tests are run, and if build fails it just won't move from dev to UAT release.

If your builds aren't deterministic there's something wrong with the build tool, your configuration, or the build machine. That definitely needs to be fixed.

1

u/motioncuty Jul 20 '18

If your builds aren't deterministic

Lol. they always seem to fail when we reboot the servers.

1

u/rangeDSP Jul 20 '18

Perhaps have the build process retry if it fails the first time, problem solved? ¯_(ツ)_/¯

2

u/motioncuty Jul 20 '18

Oh I'm just bitching about dysfunction in a system too big to fix, in areas I'm not supposed to touch.

1

u/[deleted] Jul 20 '18

-every large company dev job