25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# File 'lib/klenod/test/cli.rb', line 25
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)
Dir.chdir(config.base_dir) do
Klenod::Test::Runner.new(
context: config.context,
execute: config.execute,
**runner_options,
worker_command: worker_command,
output:,
format_error: config.format_error
).call
end
rescue ConfigError => error
output.puts error.message
1
end
|