class XCPretty::ActionsFormatter

Public Instance Methods

format_compile_error(file_name, file_path, reason, line, cursor) click to toggle source
Calls superclass method
# File lib/xcpretty/actions_formatter.rb, line 5
def format_compile_error(file_name, file_path, reason, line, cursor)
  file = file_path.match /^(.+):(\d+):(\d+)$/

  if file.nil?
    STDOUT.puts "::error file=#{file_path}::#{reason}"
  else
    STDOUT.puts "::error file=#{file[1]},line=#{file[2]},col=#{file[3]}::#{reason}"
  end

  super
end
format_compile_warning(file_name, file_path, reason, line, cursor) click to toggle source
Calls superclass method
# File lib/xcpretty/actions_formatter.rb, line 17
def format_compile_warning(file_name, file_path, reason, line, cursor)
  file = file_path.match /^(.+):(\d+):(\d+)$/

  if file.nil?
    STDOUT.puts "::warning file=#{file_path}::#{reason}"
  else
    STDOUT.puts "::warning file=#{file[1]},line=#{file[2]},col=#{file[3]}::#{reason}"
  end
  
  super
end
format_error(message) click to toggle source
Calls superclass method
# File lib/xcpretty/actions_formatter.rb, line 41
def format_error(message);                                 STDOUT.puts "::error ::#{message}"; super; end
format_failing_test(suite, test, reason, file_path) click to toggle source
Calls superclass method
# File lib/xcpretty/actions_formatter.rb, line 29
def format_failing_test(suite, test, reason, file_path)
  file = file_path.match /^(.+):(\d+)$/

  if file.nil?
    STDOUT.puts "::error file=#{file_path}::#{reason}"
  else
    STDOUT.puts "::error file=#{file[1]},line=#{file[2]}::#{reason}"
  end

  super
end
format_ld_warning(message) click to toggle source
Calls superclass method
# File lib/xcpretty/actions_formatter.rb, line 42
def format_ld_warning(message);                            STDOUT.puts "::warning ::#{message}"; super; end
format_warning(message) click to toggle source
Calls superclass method
# File lib/xcpretty/actions_formatter.rb, line 43
def format_warning(message);                               STDOUT.puts "::warning ::#{message}"; super; end