serenity-bdd / serenity-maven-plugin

19 stars 21 forks source link

Running tests with context breaks serenity reports #80

Open DayGitH opened 3 years ago

DayGitH commented 3 years ago

Running with versions: serenity-core: 2.3.4 serenity-maven-plugin: 2.3.4 serenity-cucumber6: 2.3.4

Adding -D context="context" causes the serenity:aggregate report to be generated with broken links. The context value (or icon) does not show next to the scenario name and clicking the scenario throws 404. The link text of the scenario is the same as the one where context was not provided.

E.g. We have a test, which when run without context provided creates html file: target/site/serenity/c0707f6d79ff8383ad50ffbb4c74322ea03182c3df98792f379bdc537d54c7b2.html

The same test when run with -D context="O" creates html file: target/site/serenity/1588e21bccae274f5501b6cb8559838d6c385a5582d8d6ab3776adf7bb57c9e5.html

When the test is run with context, the aggregate report tries to link to the first file which doesn't exist in that case.

DayGitH commented 3 years ago

@wakaleo any update on this?

wakaleo commented 3 years ago

Can you provide a sample project or (better still) a PR with a fix? If this is important for your organisation, you can also ask about commercial support options.