2 ms·
To be honest, if I were writing software in Go I would just test it end-to-end. If the software's logic is too complex and fiddly to lend itself to straightfor
by wavemode 2y ago
To be honest, if I were writing software in Go I would just test it end-to-end.
If the software's logic is too complex and fiddly to lend itself to straightforward end-to-end testing (i.e. enterprise software), I just wouldn't write it in Go. I'd choose a higher level language like Python or Java where mocking (and other kinds of dynamism) are straightforward and require no boilerplate.