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

Missing Timings/Step Entries #8

Closed
callahat opened this issue Mar 29, 2016 · 6 comments
Closed

Missing Timings/Step Entries #8

callahat opened this issue Mar 29, 2016 · 6 comments

Comments

@callahat
Copy link

There seem to be issues with backgrounds and scenario outlines.

Background steps seem to appear once (even if they would run more than once in a file - possibly skewing results)

Scenario outline steps do not seem to be picked up at all by the formatter.

Running cucumber 2.3.3

I setup a repo where this can be observed here: https://github.com/callahat/cuke_demo
in the cucumber_statistics branch. (https://github.com/callahat/cuke_demo/tree/cucumber_statistics)
There is an example output file from the formatter that was generated with:

bundle exec cucumber features  --format CucumberStatistics::Formatter

From the counts for the calculator steps, there should be twice as many from the scenario outlines.

@rosskevin
Copy link
Member

Feel free to PR, I'm unlikely to have time ti debug and fix an issue for you.

@callahat
Copy link
Author

My time's pretty short at the moment as well, but I did come across a workaround for the scenario outline missing steps. By using --expand as an additional option the outline steps show up. The background steps still only get counted once.

@rosskevin
Copy link
Member

Was this fixed in your PR @callahat? or could this relate to #9?

@callahat
Copy link
Author

callahat commented Aug 10, 2016

I didn't address this in the PR, and I think #9 is unrelated. When looking into it a while ago it seemed to be a feature of how Cucumber reports the steps. --expand made the expected timings show up, but I didn't look into whether or not there's a way within the formatter to 'force' Cucumber to report everything to the formatters.

EDIT: --expand helps with the scenario outlines, background steps still only get reported once.

@callahat
Copy link
Author

Turns out there is a new formatter api that should be used instead.

( Cuke group thread on google groups: https://groups.google.com/forum/#!topic/cukes/HIGakoahWEA )

I'm ok with closing this issue as the solution involves updating to use the new api.

@rosskevin
Copy link
Member

thanks for looking in on that, I've added #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants