Skip to content

Commit

Permalink
Clear ansi color escapes from rspec traces (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrcuns authored Nov 18, 2022
1 parent 971962e commit 44d2143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion allure-rspec/lib/allure_rspec/formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def update_test_proc(result)
test_case.stage = Allure::Stage::FINISHED
test_case.status = status(result)
test_case.status_details.message = status_detail.message
test_case.status_details.trace = status_detail.trace
test_case.status_details.trace = status_detail.trace&.gsub(/\e\[(\d+)(?:;\d+)*m/, "")
end
end
end
Expand Down

0 comments on commit 44d2143

Please sign in to comment.