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

Broken links in reports generated when building with gradle #31

Open
vx-bill opened this issue Oct 22, 2022 · 5 comments
Open

Broken links in reports generated when building with gradle #31

vx-bill opened this issue Oct 22, 2022 · 5 comments

Comments

@vx-bill
Copy link

vx-bill commented Oct 22, 2022

Issue

The generated report has broken links. For example, the "Scenario" link on the page "Home > Requirements > Wikipedia > When Searching For Terms" links to "70c0332927ff5ffa5d202d4525c541a8f0e89e75bf1128a0d8d7748d95512cd3.html" which does not exist in "target/site/serenity"

Steps to reproduce

  1. Add logbackVersion 1.2.11 to build.gradle (matches version from pom.xml)
  2. Update serenity-gradle-plugin to version 3.3.4 (to match version from pom.xml, however same behaviour exists in 3.3.0)
  3. execute ./gradlew test

Investigation

Reports generated via maven have the same link point to "starter.wikipedia.whensearchingforterms_searchbysinglekeyword.html". A file with the same name is generated by the gradle build, and the content is identical. This issue seems to be caused by the serenity-gradle-plugin and and its handling of generated file names. Any pointers on specifically where to dig deeper into the plugin?

generated gradle report

  • Additional Observation: gradlew clean does not remove the target directory. The ClearReports task only deletes the serenity subdirectory under target. Is there another task to remove target, or am I missing configuration to direct the plugin to write reports somewhere else, like the build directory, which is removed by clean?
@AirSupplyaLL
Copy link

I have the same issue now, have yours been resolved? @vx-jimba

@AirSupplyaLL
Copy link

Hi @wakaleo I am a new learner of serenity bdd. I am facing same issue @vx-jimba raised above
could you help us on this. thank you

@tnielens
Copy link

tnielens commented Mar 7, 2024

I'm facing the same issue with version 4.0.46 of serenity.

@wakaleo
Copy link
Member

wakaleo commented Mar 7, 2024

I'm facing the same issue with version 4.0.46 of serenity.

Can you provide a sample project that reproduces the issue?

@tnielens
Copy link

tnielens commented Mar 7, 2024

My bad, 4.0.46 works fine. I'm having the same broken link issues with 3f04a8602. I'll give a look at the plugin.

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

4 participants