Sha256: c69d55949335d6aae0e430be04782996e2407bb79cf1cc6aca5e00728308688e
Contents?: true
Size: 696 Bytes
Versions: 9
Compression:
Stored size: 696 Bytes
Contents
module KnapsackPro module Runners class MinitestRunner < BaseRunner def self.run(args) ENV['KNAPSACK_PRO_TEST_SUITE_TOKEN'] = KnapsackPro::Config::Env.test_suite_token_minitest ENV['KNAPSACK_PRO_RECORDING_ENABLED'] = 'true' runner = new(KnapsackPro::Adapters::MinitestAdapter) task_name = 'knapsack_pro:minitest_run' if Rake::Task.task_defined?(task_name) Rake::Task[task_name].clear end Rake::TestTask.new(task_name) do |t| t.libs << runner.test_dir t.test_files = runner.test_file_paths t.options = args end Rake::Task[task_name].invoke end end end end
Version data entries
9 entries across 9 versions & 1 rubygems