Secrets of Testing Rails 5 Apps
summary
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
chapters (40)
- 0:00Intro
- 0:41BIGBinary
- 1:38Rails issues team
- 2:41Stickers collector
- 3:24Do you have a favourite Open source maintainer?
- 4:09Delete tests
- 4:22Secrets of Testing Rails 5 apps
- 5:09Running tests
- 5:35rake test
- 5:46Test output matters!
- 7:55Which tests were slow?
- 8:30Because minitest!
- 9:45Many libraries trying to solve same problem
- 10:46Test Runner
- 11:41Documentation
- 12:40Improved filtering of tests
- 13:33Running multiple tests
- 13:52Improved reporting of failures
- 14:34Backtrace
- 14:57Deferred output
- 15:09Colored output
- 15:31Powered by Minitest 5
- 16:04Inspirations
- 17:09Writing tests
- 17:24Unit tests Functional tests Integration tests
- 18:01What to test in a controller
- 22:07Almost same as controller test
- 22:45Slow!!
- 23:20Integration controller tests in Rails 5
- 23:46Functional controller tests soft deprecated
- 24:08Old functional tests will continue to work
- 24:29Action Controller:: Test Case
- 24:40Might be extracted to a gem in Rails 5.1
- 24:59Implications
- 26:29What not to test in a controller test?
- 27:15Scratching the surface
- 29:05Not just testing controller action in isolation
- 29:35Controller View interface
- 30:30Just an implementation detail
- 31:27Testing controller isolated from views
related talks
43mSecrets of Testing Rails 5 apps
31mSecrets of Testing Rails 5 Apps
26mHidden Features of Rails 5
36mBuilding the Rails ActionDispatch::SystemTestCase framework
24mRails 5 Features You Haven't Heard About
40mBuilding Rails ActionDispatch::SystemTestCase Framework
28mTeaching RSpec to Play nice with Rails
31mQuick and easy browser testing using RSpec and Rails 5.1
