Clone this wiki locally
High-quality tests are crucial to ensuring that code consistently delivers value. The Page Object Model has emerged as an industry-standard best practice for building reusable, reliable, and robust browser tests, but few teams have adopted it. Without a clear path forward, many never move on from low-level Selenium tests. Test::Right is an opinionated browser testing framework that provides a flexible, powerful platform for building a robust test suite from the start.
gem install test_right cd MY_APP test_right install
- Add the code to reset your database and restart the staging server (if necessary) to
MY_APP/test/right/config.ymlto the base URL of your application staging environment. For example, set it to
http://localhost:3000/for a standard Rails application.
- Build some Widgets
- Describe some Features
test_rightto test your app!