~/talk

Secrets of Testing Rails 5 Apps

Talkat Rails Pacific 2016 · 2016-05-20..05-21· [ruby-on-rails]
links:none on file
slides:none on file

An overview of how Rails 5 improves the testing experience, covering built-in features like the new test runner, colored output, and faster integration tests. It discusses the shift in testing strategy toward testing explicit parts of the whole system rather than internals, and looks at practical changes in Rails 5 that support these improvements.

AI-written summary · about

  1. 0:00Intro
  2. 0:41BIGBinary
  3. 1:38Rails issues team
  4. 2:41Stickers collector
  5. 3:24Do you have a favourite Open source maintainer?
  6. 4:09Delete tests
  7. 4:22Secrets of Testing Rails 5 apps
  8. 5:09Running tests
  9. 5:35rake test
  10. 5:46Test output matters!
  11. 7:55Which tests were slow?
  12. 8:30Because minitest!
  13. 9:45Many libraries trying to solve same problem
  14. 10:46Test Runner
  15. 11:41Documentation
  16. 12:40Improved filtering of tests
  17. 13:33Running multiple tests
  18. 13:52Improved reporting of failures
  19. 14:34Backtrace
  20. 14:57Deferred output
  21. 15:09Colored output
  22. 15:31Powered by Minitest 5
  23. 16:04Inspirations
  24. 17:09Writing tests
  25. 17:24Unit tests Functional tests Integration tests
  26. 18:01What to test in a controller
  27. 22:07Almost same as controller test
  28. 22:45Slow!!
  29. 23:20Integration controller tests in Rails 5
  30. 23:46Functional controller tests soft deprecated
  31. 24:08Old functional tests will continue to work
  32. 24:29Action Controller:: Test Case
  33. 24:40Might be extracted to a gem in Rails 5.1
  34. 24:59Implications
  35. 26:29What not to test in a controller test?
  36. 27:15Scratching the surface
  37. 29:05Not just testing controller action in isolation
  38. 29:35Controller View interface
  39. 30:30Just an implementation detail
  40. 31:27Testing controller isolated from views
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.