Cyrun

cyrun is a command line utility to run and automatically retry failed cypress specs.

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add cyrun

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install cyrun

Usage

cyrun uses npm to run the specs. It will call:

npm run <task-name-you-specify> -- --specs <list-of-specs-to-run> --config <screenshot-configuration> --headless --reporter junit --reporter-options <options>

So for example, cyrun could be used as follows:

cyrun --task npm-task-for-cypress --working-directory --pattern "apps/e2e/**/*.spec.ts"

License

The gem is available as open source under the terms of the MIT License.