Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
2,481
On Slideshare
2,307
From Embeds
174
Number of Embeds
6

Actions

Shares
Downloads
34
Comments
0
Likes
0

Embeds 174

http://notatnik.mekk.waw.pl 162
http://127.0.0.1 4
http://www.linkedin.com 4
https://www.linkedin.com 2
https://notatnik.mekk.waw.pl 1
http://webcache.googleusercontent.com 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Testing JavaScript Front Trends 2010
  • 2. whoami • Morgan Roderick, @mrgnrdrck • Web developer • First web page in 94, have used <blink>, <marquee>, <font> ... • Mostly freelancing since 2001 • Currently on contract with Nokia Gate5
  • 3. Todays talk • Why do we write code? • Why should we write tests? • Getting started with Unit Tests
  • 4. Why do we write code?
  • 5. Famous fails! • 1985-1987 Therac 25 Medical accelerator, 5 patients dead, several injured • 1994 Intel Pentium floating point division bug (FDIV). $475M • 1998 NASA space probe Mars Climate Orbiter burns up in atmosphere. $327.6M.
  • 6. Moar famous fails • 2000 National Cancer Institute, Panama City, radiation therapy planning software, 8 patients die, 20 severely injured • ... • 2010 Toyota recalls cars, est. $2B • 2010 Twitter suffers XSS attack
  • 7. Why should we test?
  • 8. Pick a test framework TestCase Jasmine JsUnit Crosscheck DOH YUI Test UnitTesting Test.Simple jsUnity JsTestDriver J3Unit JasUnit QUnit JSNUnit screw-unit JSTest FireUnit SinonJS RhinoUnit
  • 9. Pick a test framework TestCase Jasmine JsUnit Crosscheck DOH YUI Test UnitTesting Test.Simple jsUnity JasUnit JsTestDriver J3Unit QUnit JSNUnit JSTest FireUnit screw-unit SinonJS RhinoUnit
  • 10. JsTestDriver TestCase
  • 11. Testing PubSubJS http://github.com/mroderick/PubSubJS
  • 12. PubSubJS Requirements • Subscribe to messages • Publish messages • Unsubscribe from messages
  • 13. PubSubJS Overview
  • 14. subscribe
  • 15. test subscribe
  • 16. unsubscribe
  • 17. test unsubscribe
  • 18. test unsubscribe
  • 19. publish
  • 20. publish contd.
  • 21. test publish
  • 22. test publish
  • 23. test publish
  • 24. test publish
  • 25. Thank you
  • 26. • http://github.com/mroderick/PubSubJS • http://code.google.com/p/js-test-driver/ • http://cjohansen.no/sinon/