A skeleton project on how to do front end test with Sinatra server and Cypress.
The sinatra server is server.rb
, and the spec file is cypress/integration/example/sinatraTest.js
- install necessary packages
npm install
bundle install
- start the Sinatra server
ruby server.rb
- run the test in cypress for GUI test runner
npx cypress open
for command line test runner
npx cypress run