An example repo using cypress-on-rails - demonstrating the true power of end-to-end testing โกโกโก
Modern end to end testing using Cypress.
to teach you how to leverage Cypress to create solid end to end tests that increase your confidence in your development updates.
rbenv install 2.6.5
Note: Not using rbenv? What are you doing?
gem install bundler 2.0.2
yarn
Note: Not using yarn? What are you doing?
pg_ctl -D /usr/local/var/postgres start
bundle exec rails db:create
bundle exec rails db:migrate
You'll most likely need to run the migration for your test environment as well:
RAILS_ENV=test bundle exec rails db:migrate
bundle exec rails s
w00t! Visit your app at http://localhost:3000 ๐๐๐
bundle exec rails s -e test -p 5002
yarn test:open
This will open a nice window for you:
Click on the test you want to run, and boom - you're good to go! ๐๐๐