Sha256: 215a80bf1a20d7fa400edf0a6aef691f94504e17f9c9c525f0511019377ad7a3

Contents?: true

Size: 507 Bytes

Versions: 12

Compression:

Stored size: 507 Bytes

Contents

module Swt
  class CucumberRunner
    START_DELAY = 1
    
    def run_features(args)
      require "cucumber/cli/main"
      require "cucumber"
      require "cucumber/rb_support/rb_language"
      require "swt/cucumber_patches"
      Thread.new do
        begin
          sleep START_DELAY
          main = Cucumber::Cli::Main.new(args)
          main.execute!
          Redcar.app.quit
        rescue Object => e
          puts e.message
          puts e.backtrace
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
swt-0.5-java lib/swt/cucumber_runner.rb
swt-0.3-java lib/swt/cucumber_runner.rb
swt-0.2-java lib/swt/cucumber_runner.rb
swt-0.1-java lib/swt/cucumber_runner.rb
redcar-0.11 plugins/swt/lib/swt/cucumber_runner.rb
redcar-0.11.0dev plugins/swt/lib/swt/cucumber_runner.rb
redcar-0.10 plugins/swt/lib/swt/cucumber_runner.rb
redcar-0.9.2 plugins/swt/lib/swt/cucumber_runner.rb
redcar-0.9.1 plugins/swt/lib/swt/cucumber_runner.rb
redcar-0.9.0 plugins/swt/lib/swt/cucumber_runner.rb
redcar-0.8.1 plugins/swt/lib/swt/cucumber_runner.rb
redcar-0.8 plugins/swt/lib/swt/cucumber_runner.rb