Sha256: 546dfde568ef7fbaa50a0a48cd3c0bd2eff08a0a3ba37e2dcacdb04e696cd386

Contents?: true

Size: 428 Bytes

Versions: 5

Compression:

Stored size: 428 Bytes

Contents

require "pathname"
CLI = Pathname.new(File.dirname(__FILE__)).join("../../exe/cypress-rails")

desc "Initialize cypress.config.js"
task :"cypress:init" do
  system "#{CLI} init"
end

desc "Open interactive Cypress app for developing tests"
task :"cypress:open" do
  trap("SIGINT") {} # avoid traceback
  system "#{CLI} open"
end

desc "Run Cypress tests headlessly"
task :"cypress:run" do
  abort unless system "#{CLI} run"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cypress-rails-0.8.0.rc1 lib/cypress-rails/rake.rb
cypress-rails-0.7.1 lib/cypress-rails/rake.rb
cypress-rails-0.7.0 lib/cypress-rails/rake.rb
cypress-rails-0.6.1 lib/cypress-rails/rake.rb
cypress-rails-0.6.0 lib/cypress-rails/rake.rb