Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 2.19 KB

README.md

File metadata and controls

40 lines (33 loc) · 2.19 KB

jbehave-example

Example of jbehave (http://jbehave.org/) configuration for IDEA and maven Additional integration with selenide (http://selenide.org/)

Open Source Love
Build Status Coverage Status Dependency Status contributions welcome

Table of contents:

Checks

Jacoco/cobertura code coverage, pmd, checkstyle, enforcer, findbugs

Project parts

Under src/test/java :

JBehave only

  • 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 extending JUnitStory). 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 extending JUnitStories) 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

JBehave with Selenide

  • selenide package
    • GoogleTest - selenide only example
    • GoogleJBehaveStory and google_j_behave_story.story - jbehave with selenide story
    • GoogleJBehaveSteps - steps for selenide with Jbehave example

Ideas