Sha256: 821ddf1ca7a061582ad62b9db28d783a62194980eceb7ac03b9b441afd354a8e

Contents?: true

Size: 666 Bytes

Versions: 99

Compression:

Stored size: 666 Bytes

Contents

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

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

        if runner.test_files_to_execute_exist?
          cmd = %Q[KNAPSACK_PRO_RECORDING_ENABLED=true KNAPSACK_PRO_TEST_SUITE_TOKEN=#{ENV['KNAPSACK_PRO_TEST_SUITE_TOKEN']} bundle exec spinach #{args} --features_path #{runner.test_dir} -- #{runner.stringify_test_file_paths}]

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

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
knapsack_pro-2.10.1 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-2.10.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-2.9.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-2.8.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-2.7.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-2.6.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-2.5.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-2.4.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-2.3.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-2.2.1 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-2.2.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-2.1.1 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-2.1.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-2.0.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.22.3 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.22.2 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.22.1 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.22.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.21.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.20.2 lib/knapsack_pro/runners/spinach_runner.rb