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-1.20.1 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.20.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.19.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.18.2 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.18.1 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.18.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.17.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.16.1 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.16.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.15.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.14.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.13.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.12.1 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.12.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.11.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.10.1 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.10.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.9.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.8.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-1.7.0 lib/knapsack_pro/runners/spinach_runner.rb