Pro Yearly is on sale from $80 to $50! »

def tdd_ios( hint: RubyMotion )

def tdd_ios( hint: RubyMotion )

Lightening talk about RubyMotion, iOS and testing. Presented at March RoRo Sydney meet.

D79fc498d7a5b2ce12180890247476f0?s=128

Jon Rowe

March 12, 2013
Tweet

Transcript

  1. def tdd_ios( hint: RubyMotion) @JONROWE

  2. ObjectiveC

  3. ObjectiveC TDD IS HARD!

  4. ObjectiveC TDD IS HARD! (or just not popular)

  5. PhoneGap?

  6. PhoneGap? JS

  7. PhoneGap? JS TDD’able

  8. PhoneGap? JS TDD’able Sucks...

  9. RubyMotion?

  10. RubyMotion? Ruby

  11. RubyMotion? Ruby Compiles

  12. RubyMotion? Ruby Compiles Access to all the APIs

  13. Has testing built in

  14. Bacon

  15. Bacon MacBacon

  16. Bacon MacBacon Runs In Simulator

  17. None
  18. Unit Testing

  19. Unit Testing Integration Testing

  20. Unit Testing Integration Testing Acceptance Testing (limited)

  21. Use Rubyisms

  22. Use Rubyisms Stub web requests

  23. Use Rubyisms Stub web requests Simulate device events

  24. Felt Like Rails

  25. Solution?

  26. Pure Ruby Library

  27. Pure Ruby Library RSpec / MiniTest

  28. Pure Ruby Library RSpec / MiniTest Ruby 2.0.0

  29. Caveats:

  30. Caveats: Libs don’t always behave the same.

  31. Caveats: Libs don’t always behave the same. (JSON)

  32. Caveats:

  33. Caveats: no require

  34. Caveats: no require no metaprogramming

  35. Caveats: no require no metaprogramming alloc / init vs initialize

  36. end