jbehave-junit-runner icon indicating copy to clipboard operation
jbehave-junit-runner copied to clipboard

README unclear about JUnitReportingRunner.recommandedControls(configuredEmbedder());

Open mosofsky-netbase opened this issue 10 years ago • 2 comments

The readme suggests adding the following line of code:

JUnitReportingRunner.recommandedControls(configuredEmbedder());

Suggested improvements:

1] Specify where this line of code goes? Does it go in the constructor of the JUnitStories subclass or in the configuration() overridden method?

2] Fix typo by changing recommandedControls to recommendedControls.

mosofsky-netbase avatar Dec 23 '14 20:12 mosofsky-netbase

For 1). Take a look at an example project on using JBehave and JBehave-JUnit-Runner at https://bitbucket.org/skurlow/qs_jbehave/overview and take a look at the class com.stephenkurlow.calculator.runner.SelectiveJUnitStories

skurlow avatar Dec 23 '14 21:12 skurlow

Awesome, I can see from the three classes in the runner directory (https://bitbucket.org/skurlow/qs_jbehave/src/de8c5e14f75a/bdd/src/main/java/com/stephenkurlow/calculator/runner/?at=master) that the line of code belongs in the constructor of the JUnitStories subclass.

mosofsky-netbase avatar Dec 23 '14 22:12 mosofsky-netbase