Testing tdd jasmine

347 views
256 views

Published on

http://github.com/sideshowcoder/javascript-workshop

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
347
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Testing tdd jasmine

  1. 1. TDD ...or how to develop software in style!
  2. 2. Some basics
  3. 3. Testing is not TDD
  4. 4. Test first is kind of TDD
  5. 5. TDD is software design
  6. 6. Familiar with TDD in ruby?
  7. 7. require "minitest/autorun" ! class Foo def great? true end end ! describe Foo do it "is great" do Foo.new.great?.must_equal true end end
  8. 8. Done any JavaScript testing?
  9. 9. Ok let’s build the simplest thing possible! ! FizzBuzz
  10. 10. What is important here?
  11. 11. Think what the outcome should be
  12. 12. Implement in the most straightforward way
  13. 13. Make it simpler!
  14. 14. Ok your turn!
  15. 15. Roman Numerals! 1 -> I, 2 -> II 4 -> IV 5 -> V 9 -> IX 10 -> X 40 -> XL 3999 -> MMMCMXCVIV ! npm install jasmine-node -g ! jasmine-node roman.spec.js
  16. 16. How did it go?
  17. 17. Ok those are the basics!

×