如何把测试写成文档一样

Excellent Talk,David Evans。我听过地最好的讲怎么写测试的演讲,受益匪浅。Our industry will be better if all the developer knows how to run their code with proper test, it is as simple as that.

http://yowconference.com.au/slides/yow2013/Evans-SettingAGoodExample.pdf
https://prezi.com/ne8kmwwmpc6o/setting-a-good-example/#

如何把测试写成文档一样_第1张图片

Important Point #1

A specification declares what to test, now how to test it

Important Point #2

SBE, BDD and ATDD artefacts are more than just tests...
Now: it is specification
Soon: it will become test
Later: it lives as documentation

Important Point #3

Short Lived: Story, Change
Long Lived: Specification, Effect

Important Point #4

Test slow down development just as passengers slow down the bus.

Important Point #5

The effort it is worth spending on tests depends on the value we give to them.

你可能感兴趣的:(bdd)