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
Not able to use GivenStories having Examples table in story files #12
Comments
Okay, this probably won't work yet. Another complication in the logic for the scenarioReporter :) Thanks for reporting this! Just out of curiosity: what's your use-case for combining given stories and examples tables? |
Hi Andreas,
This flow works just fine with jBehave-Web but it throws the exception above when using JUnitReportingRunner. My use case is the following:
|
Intriguing. Could you post the relevant sections of your story files? I haven't used parameterized GivenStories yet, would like to see what you have done. Also, it would give is a test case :) |
At the same time I noticed, that the test suite AfterStories is not green anymore. Somewhere the test case counting went haywire. Opening new bug for that. |
@daniel, take a look at "given_stories_parametrised_by_examples.story" on the jbehave-trader-example (jbehave-core/examples/trader). This story has the structure I'm taking about. There are other good GivenStories examples there as well. Let me know if you still want me to post my stories @andreas,
I would consider these "enhancements" since the feature now works. This might be related Issue #16 you opened. Let me know if you want me to add that detail there or open a new issue |
Hi, glad that this is fixed for you :) About your pickiness. You are absolutely right. I knew about the second point, but haven't even thought about nesting Given Stories :) The technical background is, that while we're building the test execution tree for JUnit prior to executing it, we only get the given story as a path, so we would have to somehow parse it. I don't know yet how to do that with JBehave. Maybe it's not that difficult. So please, if you don't mind, create two enhancements. Thanks and enjoy your weekend. Hope you have such a great weather as we in Germany do. Andreas |
To reproduce:
Notice that the execution stops just after printing the example to be executed
By experimenting I also found out the following:
Here is the stack trace I see
The text was updated successfully, but these errors were encountered: