class Cucumber::Formatter::Json
def attach(src, mime_type, _filename)
def attach(src, mime_type, _filename) if mime_type == 'text/x.cucumber.log+plain' test_step_output << src return end if mime_type =~ /;base64$/ mime_type = mime_type[0..-8] data = src else data = encode64(src) end test_step_embeddings << { mime_type: mime_type, data: data } end