Sha256: 8eda0c0d51b93657b24449ecaf7d750b2570c4b0bb5cf2c07ded26446f26cfe7
Contents?: true
Size: 1.01 KB
Versions: 37
Compression:
Stored size: 1.01 KB
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' adapter_class = KnapsackPro::Adapters::MinitestAdapter KnapsackPro::Config::Env.set_test_runner_adapter(adapter_class) runner = new(adapter_class) if runner.test_files_to_execute_exist? adapter_class.verify_bind_method_called KnapsackPro.tracker.set_prerun_tests(runner.test_file_paths) 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.warning = false 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 end
Version data entries
37 entries across 37 versions & 1 rubygems