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

UnitFormatter for cucumber-jvm #226

Merged
merged 3 commits into from
Feb 29, 2012
Merged

UnitFormatter for cucumber-jvm #226

merged 3 commits into from
Feb 29, 2012

Conversation

trnl
Copy link
Contributor

@trnl trnl commented Feb 28, 2012

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.

@remast
Copy link

remast commented Feb 28, 2012

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

@trnl
Copy link
Contributor Author

trnl commented Feb 28, 2012

Yeah,

Just run in the following way:

-f pretty -f unit -o reports/unit.xml -f html -o reports/

I'm doing this for jenkins.

-vova

@remast
Copy link

remast commented Feb 28, 2012

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?

@trnl
Copy link
Contributor Author

trnl commented Feb 28, 2012

nope, to create multiply reports you just need to type all required formatters. Please, note -f html later in the line.

-vova

@aslakhellesoy
Copy link
Contributor

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.*;
Copy link
Contributor

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

Copy link
Contributor Author

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?

@aslakhellesoy aslakhellesoy merged commit 6bf58e6 into cucumber:master Feb 29, 2012
@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.

3 participants