global
def source_context
def source_context return [] unless test_case.source_lines # Show the test code (excluding setup/teardown) test_case.source_lines.reject do |line| line.strip.empty? || line.strip.start_with?('#') end.first(3) # Limit to first 3 relevant lines end