14
TDD with TypeScript, AngularJS and Node.js @JakubJedryszek jj09.net

TDD with TypeScript, AngularJS, and Node.js

Embed Size (px)

Citation preview

Page 1: TDD with TypeScript, AngularJS, and Node.js

TDD with TypeScript, AngularJS and Node.js

@JakubJedryszek

jj09.net

Page 2: TDD with TypeScript, AngularJS, and Node.js
Page 3: TDD with TypeScript, AngularJS, and Node.js
Page 4: TDD with TypeScript, AngularJS, and Node.js

TDD

> Write test

> Run test (should fail)

> Write code

> Run test (should pass)

> Refactor code

> Run test (should pass)

Page 5: TDD with TypeScript, AngularJS, and Node.js

Uncle Bob’s Three Laws

> You are not allowed to write any production code unless it

is to make a failing unit test pass.

> You are not allowed to write any more of a unit test than

is sufficient to fail; and compilation failures are

failures.

> You are not allowed to write any more production code than

is sufficient to pass the one failing unit test.

Page 6: TDD with TypeScript, AngularJS, and Node.js

\> QUnit

> Mocha

> Jasmine

JavaScript testing frameworks

Page 7: TDD with TypeScript, AngularJS, and Node.js

\> npm

> gulp

> bower

> tsd

JavaScript toolset

Page 8: TDD with TypeScript, AngularJS, and Node.js

\> Karma

> Protractor

JavaScript testing toolset

Page 9: TDD with TypeScript, AngularJS, and Node.js

\> demo

Testing Node.js with Mocha

Page 10: TDD with TypeScript, AngularJS, and Node.js

\> demo

Testing AngularJS with Jasmine

Page 11: TDD with TypeScript, AngularJS, and Node.js

\

Page 12: TDD with TypeScript, AngularJS, and Node.js

\

Page 13: TDD with TypeScript, AngularJS, and Node.js

\

Page 14: TDD with TypeScript, AngularJS, and Node.js

Stay in touch!

@JakubJedryszek

jj09.net