Class: Cypress::Runner
- Inherits:
-
Object
- Object
- Cypress::Runner
- Defined in:
- lib/cypress/runner.rb
Instance Method Summary collapse
-
#initialize(owner, callback_url) ⇒ Runner
constructor
A new instance of Runner.
- #run(server_port) ⇒ Object
Constructor Details
#initialize(owner, callback_url) ⇒ Runner
Returns a new instance of Runner.
3 4 5 6 |
# File 'lib/cypress/runner.rb', line 3 def initialize(owner, callback_url) @owner = owner @callback_url = callback_url end |
Instance Method Details
#run(server_port) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/cypress/runner.rb', line 8 def run(server_port) Open3.popen2(*cypress_cli(server_port)) do |sin, sout, status| sout.each_line do |line| puts "CYPRESS: #{line}" end end end |