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-0.50.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.49.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.48.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.47.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.46.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.45.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.44.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.43.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.42.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.41.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.40.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.39.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.38.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.37.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.36.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.35.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.34.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.33.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.32.0 lib/knapsack_pro/runners/spinach_runner.rb
knapsack_pro-0.31.0 lib/knapsack_pro/runners/spinach_runner.rb