Sha256: 23887806f8822f7d3ab81bf6138d8f99d6af9ee8dc412b49ad742f940c25851b

Contents?: true

Size: 570 Bytes

Versions: 19

Compression:

Stored size: 570 Bytes

Contents

module KnapsackPro
  module Runners
    class CucumberRunner < BaseRunner
      def self.run(args)
        ENV['KNAPSACK_PRO_TEST_SUITE_TOKEN'] = KnapsackPro::Config::Env.test_suite_token_cucumber

        runner = new(KnapsackPro::Adapters::CucumberAdapter)

        cmd = %Q[KNAPSACK_PRO_RECORDING_ENABLED=true KNAPSACK_PRO_TEST_SUITE_TOKEN=#{ENV['KNAPSACK_PRO_TEST_SUITE_TOKEN']} bundle exec cucumber #{args} -- #{runner.stringify_test_file_paths}]

        Kernel.system(cmd)
        Kernel.exit($?.exitstatus) unless $?.exitstatus.zero?
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
knapsack_pro-0.13.0 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.12.0 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.11.0 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.10.0 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.9.0 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.8.0 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.7.2 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.7.1 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.7.0 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.6.1 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.6.0 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.5.0 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.4.0 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.3.0 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.2.1 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.2.0 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.1.2 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.1.1 lib/knapsack_pro/runners/cucumber_runner.rb
knapsack_pro-0.1.0 lib/knapsack_pro/runners/cucumber_runner.rb