javajbehaveserenity-bdd

Serenity BDD with JBehave loading duplicate requirements


I am trying to run a set of JBehave user stories with Serenity. While generating the Serenity test report with the Serenity-Maven Plugin, I discovered that the HTML reports, and the corresponding console output loads the same JBehave story twice.

Is there any way to prevent the story from loading twice in the requirements?

For reference, a snippet of the console output is provided, with certain sensitive details redacted:

[INFO] LOADED REQUIREMENTS:
REQUIREMENTS:
    - story : Failure {id: src/test/resources/stories/Failure.story, displayName: 'Failure', path: Failure.story, parent: 'null'}
    - story : Failure {id: /Users/<REDACTED>/Repo/src/test/resources/stories/Failure.story, displayName: 'Failure', path: Failure.story, parent: 'null'}

Solution

  • I solved the issue by upgrading the Serenity Maven Plugin from:

    2.0.89

    to:

    2.1.8