cucumber / react-components

React components for Cucumber
MIT License
32 stars 10 forks source link

Attaching a zip file to the report #343

Closed MaximeAnsquer closed 1 month ago

MaximeAnsquer commented 6 months ago

🤔 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.

mpkorstanje commented 6 months ago

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

davidjgoss commented 1 month ago

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