Unit tests | Intro
•Should be your #1 priority
•Cover your most important JS classes
•Run often, before commit, daily, nightly.
•Use TDD approach + BDD style for readability
Slide 12
Slide 12 text
Unit tests | TDD basics
1. Make the unit test fail
2. Implement
3. Make the test pass
4. Refactor, Repeat
Slide 13
Slide 13 text
Unit tests | Writing a unit test
Unit testing demo
Slide 14
Slide 14 text
Testing your UI
Functional testing
Slide 15
Slide 15 text
UI tests | Intro
Manually writing UI tests takes time
Slide 16
Slide 16 text
UI tests | Intro
UI tests are more fragile & run slower than unit tests
Slide 17
Slide 17 text
UI tests | Intro
Understanding CSS and ComponentQuery is key
Slide 18
Slide 18 text
UI tests | Intro
Siesta Event Recorder
Slide 19
Slide 19 text
UI tests | Event recorder
•Records user actions: clicks, types, drag drop
•Exports actions to a Siesta test case
•Can be used by a non-programmer
•Big timesaver
UI tests | Cloud testing
So…running in multiple browsers?
Slide 25
Slide 25 text
Continuous Integration | Cloud testing
•Need to create Virtual Machines for each version of IE
•Total: Chrome, Safari, FF, IE 7-11 => 7 VMs
•Managing such a farm can be very time consuming
Slide 26
Slide 26 text
Continuous Integration | Cloud testing
•Siesta integrates with both BrowserStack and Sauce Labs
•Run tests easily in any OS and Browser combination
•No need to setup your own VM farm
•Read more on the Bryntum blog…