82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
# File 'lib/klenod/test/cli.rb', line 82
def call
config_path = ConfigLoader.find
unless config_path
output.puts "Could not find klenod.test.rb"
return 1
end
config = ConfigLoader.load(config_path)
coverage_config = coverage_config(config.coverage)
Dir.chdir(config.base_dir) do
Klenod::Test::Runner.new(
context: config.context,
execute: coverage_execute(config, coverage_config),
watch: false,
worker_paths: worker_paths,
spawn_empty: true,
worker_command: worker_command,
output:,
format_error: config.format_error
).call
end
rescue ConfigError => error
output.puts error.message
1
end
|