-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Add readme to cucumber-junit #1306
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
47e93d4
to
2a7ad08
Compare
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.
Looks good to me.
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.
Really great addition!! Some minor suggestions to clarify further
junit/README.md
Outdated
} | ||
``` | ||
|
||
This will execute all scenarios in the package of the runner. By default glue code is assumed to be in the same |
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.
[text edit suggestion] "This will execute all scenarios in the same package as the runner; by default glue code is assumed to be in the same package."
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.
[suggestion] Add an example of how to use the '@CucumberOptions'?
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.
Do we have some documentation about cucumber options to link here?
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.
Not atm. Fyi, it's just a suggestion. Not blocking at all.
junit/README.md
Outdated
|
||
## Using JUnit Rules ## | ||
|
||
Cucumber supports JUnits `@ClassRule`, `@BeforeClass` and `@AfterClass` annotations. These will be invoked around the |
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.
This paragraph might not be clear Cucumber users who are not full-on software developers (yet).
Particularly:
"Cucumber supports JUnits @ClassRule
, @BeforeClass
and @AfterClass
annotations. These will be invoked around the
+suite of features. " => what does it mean to run 'around the suite of features'? Is this like a BeforeAll/AfterAll?
"Using these is not recommended as it limits the portability between different runners. " => what is 'portability between different runners'? Why is limiting this a bad thing?
"Instead it is
+recommended to use Cucumbers Before
and After
hooks to setup scaffolding." => How to use 'Before' and 'After' hooks? What is 'setup scaffolding'?
Maybe this is not the place to answer all of these questions, but I think this could be clarified a little to be clearer to a wider audience.
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.
Do we have some documentation about the Before and After hooks? I am assuming people are familiar with cucumber when they read this.
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.
Yes, we do. Currently here: https://cucumber.netlify.com/hooks/
@@ -48,7 +48,8 @@ | |||
* Additional hints can be given to Cucumber by annotating the class with {@link CucumberOptions}. | |||
* <p> | |||
* Cucumber also supports JUnits {@link ClassRule}, {@link BeforeClass} and {@link AfterClass} annotations. | |||
* These will be invoked around the suite of features" and moved to the end of the java doc. | |||
* These will be invoked around the suite of features. Using these is not recommended as it limits the portability |
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.
See above. If any changes are made based on those comments, please update accordingly also here.
eac6720
to
fbf2b54
Compare
fbf2b54
to
ef167fe
Compare
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.
Details can (and probably should) be clarified in documentation if needed.
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. |
Summary
Add readme to cucumber-junit