Example of jbehave (http://jbehave.org/) configuration for IDEA and maven Additional integration with selenide (http://selenide.org/)
Jacoco
/cobertura
code coverage, pmd
, checkstyle
, enforcer
, findbugs
Under src/test/java
:
- Steps description is done in
ExampleSteps.java
with description annotations to each step that can be used in the.story
files - One story java file per one story file to be run by junit (
ExampleStory
extendingJUnitStory
). Steps are initialised. Mapping to story file is done by name (ExampleStory.java
->example_story.story
). Configuration can be put into another class and reused. - All stories file so all stories be run by junit (
AllStoriesByRegexPathTest
extendingJUnitStories
) Folders, paths or regex are provided to find.story
files. Configuration can be put into another class and reused. - Story file itself.
example_stories.story
selenide
packageGoogleTest
- selenide only exampleGoogleJBehaveStory
andgoogle_j_behave_story.story
- jbehave with selenide storyGoogleJBehaveSteps
- steps for selenide with Jbehave example