SlideShare is now on Android. 15 million presentations at your fingertips.  Get the app

×
  • Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

Advanced Jasmine - Front-End JavaScript Unit Testing

by Software Consulting at ZeaLake on Jul 09, 2013

  • 3,055 views

Code: https://github.com/larsthorup/jasmine-demo-advanced ...

Code: https://github.com/larsthorup/jasmine-demo-advanced
Video: https://www.youtube.com/watch?v=g4eQplHxU18
Audio: https://www.youtube.com/watch?v=8FUwc3gZDMw

Unit testing front-end JavaScript presents its own unique set of challenges. In this session we will look at number of different techniques to tackle these challenges and make our JavaScript unit tests fast and robust. We plan to cover the following subjects:

* Mocking and spy techniques to avoid dependencies on
- Functions, methods and constructor functions
- Time (new Date())
- Timers (setTimeout, setInterval)
- Ajax requests
- The DOM
- Events
* Expressive matchers
- Jasmine-jQuery
* Structuring tests for reuse and readability
* Testing browser-specific behaviour

Statistics

Views

Total Views
3,055
Views on SlideShare
2,757
Embed Views
298

Actions

Likes
4
Downloads
20
Comments
0

2 Embeds 298

http://www.zealake.com 297
https://www.google.it 1

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
Post Comment
Edit your comment

Advanced Jasmine - Front-End JavaScript Unit Testing Advanced Jasmine - Front-End JavaScript Unit Testing Presentation Transcript