react-components icon indicating copy to clipboard operation
react-components copied to clipboard

Attaching a zip file to the report

Open MaximeAnsquer opened this issue 11 months ago • 1 comments

🤔 What's the problem you're trying to solve?

Attaching a zip file to the html report in Java. I have tried several media types but always get an error:

Couldn't display application/octet-stream attachment because the media type is unsupported. Please submit a feature request at https://github.com/cucumber/cucumber/issues Couldn't display .zip attachment because the media type is unsupported. Please submit a feature request at https://github.com/cucumber/cucumber/issues Couldn't display application/x-zip attachment because the media type is unsupported. Please submit a feature request at https://github.com/cucumber/cucumber/issues Couldn't display application/x-zip-compressed attachment because the media type is unsupported. Please submit a feature request at https://github.com/cucumber/cucumber/issues

✨ What's your proposed solution?

Handle the media type "application/zip" in the Java method Scenario#attach.

⛏ Have you considered any alternatives or workarounds?

No.

📚 Any additional context?

My zip file contains a csv file


This text was originally generated from a template, then edited by hand. You can modify the template here.

MaximeAnsquer avatar Feb 28 '24 16:02 MaximeAnsquer

Which Cucumber and Html formatter version are you using? Downloading arbitrary content was implemented in https://github.com/cucumber/react-components/pull/333.

mpkorstanje avatar Feb 28 '24 19:02 mpkorstanje

Per the above this has been implemented for a while, closing accordingly.

davidjgoss avatar Jul 29 '24 14:07 davidjgoss