Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
Quick and easy browser testing using RSpec and Rails 5.1 by Sam Phippen Traditionally doing a full stack test of a Rails app with RSpec has been problematic. The browser wouldn't automate, capybara configuration would be a nightmare, and cleaning up your DB was difficult. In Rails 5.1 the new 'system test' type was added to address this. With modern RSpec and Rails, testing every part of your stack including Javascript from a browser is now a breeze. In this talk, you'll learn about the new system specs in RSpec, how to set them up, and what benefits they provide. If you want to improve your RSpec suite with full stack testing this talk is for you!
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In his talk 'Quick and Easy Browser Testing using RSpec and Rails 5.1', Sam Phippen addresses the challenges traditionally associated with full stack testing of Rails applications and introduces solutions brought by the new system tests in Rails 5.1. The presentation emphasizes the ease of setting up and executing browser tests, significantly improving the testing experience for developers. Key Points Discussed: - **The Testing Pyramid**: Phippen introduces the concept of the testing pyramid, explaining the balance necessary between isolated tests (unit tests) and integrated tests (browser testing), emphasizing that while unit tests are fast and numerous, integrated tests are critical but should be kept to a minimum due to their inherent slowness. - **Previous Challenges**: The speaker reflects on the difficulties encountered in getting browser testing to work with Rails 4.2, including complications with Capybara setup, dependency requirements, and issues with testing frameworks like Poltergeist. - **Introduction of Rails 5.1 System Tests**: A major focus is on the introduction of system tests in Rails 5.1 and how they streamline browser testing, making it straightforward for developers to set up tests with RSpec and Capybara. - **Live Demo**: Phippen showcases a live demo where he quickly sets up a Rails application to demonstrate the simplicity of implementing system tests, highlighting that the new tools allow for immediate feedback and improved debugging capabilities, such as automatic screenshots upon test failure. - **Collaboration with Rails Community**: Throughout the talk, Phippen points out how collaboration within the Rails community and contributions from various members have led to the features being discussed, encouraging attendees to engage more actively in community events. Conclusion: The main takeaway from Phippen's talk is that with the enhancements introduced in Rails 5.1, browser testing has become significantly more accessible and manageable. Developers can focus on writing tests without the previous overhead and pain points, thus improving their productivity and confidence in application stability. The talk encourages attendees to leverage these advancements to enhance their RSpec suites and to engage with the community for continuous learning and collaboration.
Suggest modifications
Cancel