7. Test Driven Development Crash Course
Suites, specs, assertions, spies, mocks, stubs,
wtf?!
7 / 38
8. Test Driven Development Crash Course
Suites, specs, assertions, spies, mocks, stubs,
wtf?!
Describe a piece of code / functionality
being tested
8 / 38
9. Test Driven Development Crash Course
Suites, specs, assertions, spies, mocks, stubs,
wtf?!
Describe a piece of code / functionality
being tested
Define setup work before and/or after
every test
9 / 38
10. Test Driven Development Crash Course
Suites, specs, assertions, spies, mocks, stubs,
wtf?!
Describe a piece of code / functionality
being tested
Define setup work before and/or after
every test
It should do exactly what you expect (all
possible scenarios!)
10 / 38
11. Test Driven Development Crash Course
Suites, specs, assertions, spies, mocks, stubs,
wtf?!
Describe a piece of code / functionality
being tested
Define setup work before and/or after
every test
It should do exactly what you expect (all
possible scenarios!)
Thats it!
11 / 38
30. Introducing Gulp
Why do we need an automated build tool?
Bundle/Minify our source code
Transpile CSS preprocessors like SASS
ES6 Transpiling (Babel)
Run tests!!
30 / 38
31. Install Gulp
First, like Karma, globally install the Gulp CLI:
$ sudo npm install -g gulp
31 / 38
32. Install Gulp
First, like Karma, globally install the Gulp CLI:
$ sudo npm install -g gulp
Locally install gulp and the gulp-karma plugin
for the project:
$ npm install --save-dev gulp gulp-karma
32 / 38
33. Install Gulp
First, like Karma, globally install the Gulp CLI:
$ sudo npm install -g gulp
Locally install gulp and the gulp-karma plugin
for the project:
$ npm install --save-dev gulp gulp-karma
Create a gulpfile.js:
$ touch gulpfile.js
33 / 38