react-components
react-components copied to clipboard
Attaching a zip file to the report
🤔 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.
Which Cucumber and Html formatter version are you using? Downloading arbitrary content was implemented in https://github.com/cucumber/react-components/pull/333.
Per the above this has been implemented for a while, closing accordingly.