Testing in Go: philosophy and tools
Testing in Go: philosophy and tools
Posted May 27, 2020 17:11 UTC (Wed) by cpitrat (subscriber, #116459)Parent article: Testing in Go: philosophy and tools
Among go tests, I've seen multiple times ettor messages that were invalid because copied from the previous function (e.g saying no error when it checked that there was an error). Or inconsistent order for messages saying what it got vs. what it wants, or worse printing got <want>, want <got>.
Duplication sucks because of that. Go community thinks that WET (write everything twice) is better than DRY (don't repeat yourself) ignoring years of computer science experience and wisdom. Proof-reading tests in a large Go code base is a good way to understand why they're wrong.
Posted May 28, 2020 20:45 UTC (Thu)
by kunitz (subscriber, #3965)
[Link] (1 responses)
Posted May 29, 2020 14:36 UTC (Fri)
by cpitrat (subscriber, #116459)
[Link]
Testing in Go: philosophy and tools
Testing in Go: philosophy and tools
