Questions tagged [jbehave-maven-plugin]

JBehave supports accessing the Embedder functionality via Maven goals:

  • map-stories-as-embeddables
  • map-stories-as-paths
  • run-stories-as-embeddables
  • run-stories-as-paths
  • run-stories-with-annotated-embedder
  • report-stepdocs
  • report-stepdocs-as-embeddables
  • generate-stories-view
  • unpack-view-resources

Maven goals support the following properties:

  • sourceDirectory: defaults to src/main/java
  • testSourceDirectory: defaults to src/test/java
  • outputDirectory: defaults to target/classes
  • testOutputDirectory: defaults to target/test-classes
  • scope: [compile|test], defaults to compile
  • includes: list of include patterns
  • excludes: list of exclude patterns
  • metaFilters: list of meta filters
  • systemProperties: list of system properties to set during execution
  • batch: [true|false], defaults to false
  • skip: [true|false], defaults to false
  • ignoreFailureInStories: [true|false], defaults to false
  • ignoreFailureInView: [true|false], defaults to false
  • generateViewAfterStories: [true|false], defaults to true
  • storyTimeoutInSecs: defaults to 300
  • failOnStoryTimeout: [true|false], defaults to false
  • threads: defaults to 1
  • embedderClass: defaults to Embedder.
  • injectableEmbedderClass: defaults to null
  • storyFinderClass: defaults to StoryFinder

Reference :

http://jbehave.org/reference/stable/maven-goals.html

19 questions
0
votes
1 answer

JBehave: How to run specific set of stories from the whole collection in .story file

Let's say I have a Main.story file which contains- Login Scenario Search Scenario AddToCart Scenario UpdateQuantity Scenario Checkout Scenario But now what if I only want to run- Login Scenario → Search Scenario → AddToCart Scenario → Checkout…
0
votes
1 answer

JBehave throwing NullPointerException when running embeddable stories

I am working on a Spring MVC rest service, for which I am also trying to set up JBehave. This is a Maven project with a single module, and the JBehave code is living under the test scope of that module. My problem is that my sample test (which is…
user5803074
0
votes
1 answer

How to pass parameter to Jbehave lifecycle

Can i pass parameter to Jbehave life cycle? Like the below? Lifecycle: Before: Given I have logged in as Thanks!
user2340124
  • 81
  • 3
  • 3
  • 12
0
votes
1 answer

How to create a .table extention jbehave file using IntelliJ

I need to create a .table file to keep the data for Jbehave using intelliJ. (As an example like this ,org/trader/stories/trades.table ) But .table file extension isn't populated when I create the file and mentioned that .table extension is not…
1
2