Navigation Menu

Skip to content

Commit

Permalink
Colorize marker
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 11, 2012
1 parent 423345a commit ed07f6f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/groonga/tester.rb
Expand Up @@ -1354,19 +1354,19 @@ def throughput(result)
end

def report_failure(result)
report_marker
report_marker(result.status)
report_diff(result.expected, result.actual)
report_marker
report_marker(result.status)
end

def report_actual(result)
report_marker
report_marker(result.status)
puts(result.actual)
report_marker
report_marker(result.status)
end

def report_marker
puts("=" * @term_width)
def report_marker(situation)
puts(colorize("=" * @term_width, situation))
end

def report_diff(expected, actual)
Expand Down Expand Up @@ -1670,7 +1670,7 @@ def finish(result)

private
def report_test(worker, result)
report_marker
report_marker(result.status)
puts("[#{worker.id}] #{worker.suite_name}")
print(" #{worker.test_name}")
report_test_result(result, worker.status)
Expand Down

0 comments on commit ed07f6f

Please sign in to comment.