Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support embed plain/text in html report #712

Merged
merged 1 commit into from
Jul 25, 2014
Merged

Conversation

bingwei
Copy link
Contributor

@bingwei bingwei commented Jul 24, 2014

We have a project and we will generate a log file when something failed.
Currently we have to attach it to report as fake image.
But we prefer to add it as 'text/plain' mime type.

Could you support this feature? Thanks!
Link is here: cucumber/common#711

@@ -49,6 +52,14 @@ def embed_image(src, label)
end
end

def embed_image(src, label)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to call this method embed_text?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already update this issue. Sorry for this.

@mattwynne
Copy link
Member

Thanks for your contribution!

I'd prefer to have a test for this new behaviour. The right place to add it is in https://github.com/cucumber/cucumber/blob/master/spec/cucumber/formatter/html_spec.rb

@bingwei if you could have a go at writing a test that would be fantastic, but we can help out otherwise. Let us know.

@bingwei
Copy link
Contributor Author

bingwei commented Jul 24, 2014

Sure, I'll add the test :) Thanks for quick reply!

@bingwei
Copy link
Contributor Author

bingwei commented Jul 24, 2014

@mattwynne I've added test in target file. Please help review and merge my PR if possible
Thanks!

@mattwynne
Copy link
Member

Looks good to me! Thanks for your contribution @bingwei!

mattwynne added a commit that referenced this pull request Jul 25, 2014
support embed plain/text in html report
@mattwynne mattwynne merged commit 549afd5 into cucumber:master Jul 25, 2014
@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants