-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
UnitFormatter for cucumber-jvm #226
Conversation
Hi, how can you use that to create both standard unit test reports and html reports? That's exactly what I am looking for! Thanx |
Yeah, Just run in the following way:
I'm doing this for jenkins. -vova |
I am a bit confused that you don't use the cucumber HtmlFormatter. So your Html report contains the unit tests but not the feature information am I right? |
nope, to create multiply reports you just need to type all required formatters. Please, note -f html later in the line. -vova |
Looks great. I'll probably merge this in next week. |
import java.io.OutputStream; | ||
import java.io.OutputStreamWriter; | ||
import java.io.UnsupportedEncodingException; | ||
import gherkin.formatter.model.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great if you could configure your IDE to not do star imports - see the README for coding standards
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I've noticed it after submitting pull request. Do I need another commit?
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. |
This unit formatter can be used while running cucumber via cli.
Also, with this it is become possible to generate html and unit reports and the same time. Previously we have to decide - html via cli or unit via cucumber-junit.