Your SlideShare is downloading. ×
Testing javascript-fronttrends-2010
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Testing javascript-fronttrends-2010

2,086
views

Published on

Published in: Technology, Business

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,086
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
34
Comments
0
Likes
0
Embeds 0
No embeds

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. • Why do we write code? • Why should we write tests? • Getting started with Unit Tests Todays talk
  • 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 DOH JsUnit QUnit Crosscheck J3Unit JSNUnit YUI Test UnitTesting Jasmine screw-unit Test.Simple TestCase JSTest jsUnity RhinoUnit JasUnit FireUnit JsTestDriver SinonJS
  • 9. Pick a test framework DOH JsUnit QUnit Crosscheck J3Unit JSNUnit YUI Test UnitTesting Jasmine screw-unit Test.Simple TestCase JSTest jsUnity RhinoUnit JasUnit FireUnit JsTestDriver SinonJS
  • 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/

×