Test your Javascript! v1.1
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Test your Javascript! v1.1

on

  • 10,919 views

Introduction to unit/functional testing and continuous integration with JavaScript

Introduction to unit/functional testing and continuous integration with JavaScript

Statistics

Views

Total Views
10,919
Views on SlideShare
9,671
Embed Views
1,248

Actions

Likes
13
Downloads
89
Comments
1

9 Embeds 1,248

http://mobicon.tistory.com 1232
http://a0.twimg.com 3
https://si0.twimg.com 3
http://www.linkedin.com 3
https://twitter.com 3
http://paper.li 1
http://twitter.com 1
http://172.25.1.151 1
http://es.twitter.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Test your Javascript! v1.1 Presentation Transcript

  • 1. Testing JavaScript © 2013 Eric Wendelin @eriwen
  • 2. Eric Wendelin Blog: eriwen.com Twitter: @eriwen Code: git.io/eric
  • 3. Today, we’ll talk about • What makes JS testing hard • A few ways we can make our JS more testable • Some tools that make testing easier
  • 4. Why is testing your JavaScript important?
  • 5. The community is behind in testing
  • 6. Why is JavaScript so hard to test?
  • 7. Un-testable JS is most of the problem
  • 8. Don’t do this! Do this!
  • 9. Use with caution! Better!
  • 10. Don’t do this! Do this!
  • 11. Don’t do this! Do this!
  • 12. Don’t do this! Do this!
  • 13. Writing Tests
  • 14. 1 unit test framework + 1 functional test framework = Infinite Pocket Bacon
  • 15. Logic / Computation unit test
  • 16. Computation Example
  • 17. User Interaction functional test
  • 18. Interaction Example
  • 19. sinon.js sinonjs.org
  • 20. sinon.js goodies • Jasmine Adapter • QUnit Adapter • Mocha Adapter • Buster.js Adapter • Chai-specific matchers • Jasmine matchers • ... much more
  • 21. ember-testing /ember.js/packages/ember-testing
  • 22. Karma karma-runner.github.io
  • 23. {F*** IT! WE’LL DO IT LIVE!}
  • 24. culture of testing
  • 25. Code at: git.io/eric Blog: eriwen.com Twitter: @eriwen