Slide 11
Slide 11 text
asserts за и против
• No doubt assertion libs can reduce typing and repetition.
• Reductions in typing with assertion libs are not profound.
• The necessary repetition without assertion libs can be minimised.
• Some repetition locally can increase readability at no great cost.
• Some assertion libs tend to reduce the value of tests as documentation.
• You are adding another (often large) library dependency with associated maintenance
overhead, bugs, life cycle etc.
• It is a commitment that will stay with you for a long time, and it is expensive to undo.
http://danmux.com/posts/the_cult_of_go_test/