Join Marton Hipszki as we explore end-to-end unit testing.
1. Set up your environment.
- Node / Mocha / Expect / Should
- Angular / Karma+Jasmine / Protractor
2. From user story level to writing tests first.
- turning Acceptance Criteria to tasks
- breaking down your tasks to doable subtasks
3. Turn user stories to end-to-end tests.
- add Protractor e2e tests for user journeys
4. Make your backend API rock solid.
- add Mocha integration tests to cover API endpoints
5. Going down in the testing pyramid.
- cross browser Jasmine unit testing Angular services / controllers
- unit testing API endpoint handlers
- mocking dependencies, speed up tests
6. How automated tests pay off.
- why automated testing is mandatory?
- why add unit tests beside integration tests?
- breaking your code with confidence
- saving time immediately
Responsive design has thus far focused on using media queries to alter the way our site looks using CSS. The next step is to look at how we can progressively enhance our site based on the the features of the device.
There are already new browser API’s are arriving to enables this, with the matchMedia API we can target specific functionality based on whether a media query matches.
Jonathan Fielding is a web developer that works in the marketing industry developing websites for clients like Virgin Active, Vodafone, Sony and BT.