18:00 - 18:15 - Kisses and Hugs
19:15 - 19:30 - break
19:30 - 20:30 - Isolation in Unit Tests - Using Test Doubles
We'll cover the following aspects:
- Why test your code???
- Intro to BDD/TDD
- Challenges writing JS tests.
- Testing JS using Mocha and Expect.js.
Unit Isolation - Using Test Doubles ( Oren Rubin )
In this part you'll become friends with Spies, Stubs and Mocks, which helps you isolate your unit from the rest of the world, and focus your tests.
We'll show how to write asynchronous tests, which are a breeze in JS.
Throughout the presentation examples from the most popular frameworks (e.g. Jasmine, QUnit, Sinon, JsTestDriver) will be shown and compared.