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.javawith description annotations to each step that can be used in the.storyfiles - One story java file per one story file to be run by junit (
ExampleStoryextendingJUnitStory). 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 (
AllStoriesByRegexPathTestextendingJUnitStories) Folders, paths or regex are provided to find.storyfiles. Configuration can be put into another class and reused. - Story file itself.
example_stories.story
selenidepackageGoogleTest- selenide only exampleGoogleJBehaveStoryandgoogle_j_behave_story.story- jbehave with selenide storyGoogleJBehaveSteps- steps for selenide with Jbehave example