Getting started with TDD

  • View
    382

  • Download
    1

Embed Size (px)

Text of Getting started with TDD

TDDIvan Wei

Why

TDD

RedWrite a test that failRefactorGreenWork the code work

RiskCostHighLowNothingToo much

Sweet Point

Demo

Gulp.jsgulpfile.jsMocha.jsmocha.optsShould.jsJSDocAPI jsdoc.json

jsDoc

Speed upSublimeAtom - DocBlockrWebstorm -

eslint

gulpfile.jsgulp.task('mochaTest', ['lint'], () => {gulp.task('mochaTest', () => {gulp.task('test', ['lint', 'mochaTest', 'build:docs']);gulp.task('test', ['mochaTest', 'build:docs']);

IDE Linter

WebStorm Sublime ( JSHint )Atom

tracer Debug

Q & A

ci / cd