Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running tests with context breaks serenity reports #80

Open
DayGitH opened this issue Oct 8, 2020 · 2 comments
Open

Running tests with context breaks serenity reports #80

DayGitH opened this issue Oct 8, 2020 · 2 comments

Comments

@DayGitH
Copy link

DayGitH commented Oct 8, 2020

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
Copy link
Author

DayGitH commented Oct 19, 2020

@wakaleo any update on this?

@wakaleo
Copy link
Member

wakaleo commented Oct 19, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants