13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/scan/runner.rb', line 13
def test_app
command = TestCommandGenerator.generate
prefix_hash = [
{
prefix: "Running Tests: ",
block: proc do |value|
value.include?("Touching")
end
}
]
FastlaneCore::CommandExecutor.execute(command: command,
print_all: true,
print_command: true,
prefix: prefix_hash,
loading: "Loading...",
error: proc do |error_output|
begin
ErrorHandler.handle_build_error(error_output)
rescue => ex
SlackPoster.new.run({
build_errors: 1
})
raise ex
end
end)
end
|