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