Closed scormaq closed 1 year ago
I can't reproduce this but I don't work on Windows, so you might need to dig into this yourself and see if you can isolate the problem and propose a PR.
The issue seems to be happening here: https://github.com/serenity-bdd/serenity-core/blob/577a7c5f78a313c6dfb95da1d358f285ea3c455e/serenity-reports/src/main/java/net/thucydides/core/reports/html/CopyProjectSpecificResourcesTask.java#L28
It is Gradle and Windows specific. See if you can dig into the code and isolate the cause, and propose a PR. It may be related to the way Gradle defines the working directory in Windows, which is sometimes set to the Gradle installation directory and not the project directory, which will cause problems for relative paths.
Also, try setting the report.assets.directory
to the absolute path of your assets folder to test this theory.
Fixed in 4.0.15
What happened?
When folder
src\test\resources\assets
exists in project (even empty dir), task aggregate throws an error when being executed on Windows environment:What did you expect to happen?
I expect that task
aggregate
will be executed without any errors. Also, when being executed for serenity-cucumber project, Serenity will attach manual test evidences from it to properly tagged scenarios (https://johnfergusonsmart.com/reporting-manual-test-results-in-serenity-bdd/)Serenity BDD version
4.0.12
JDK version
Java 18
Execution environment
Windows 10
How to reproduce the bug.
src\test\resources\assets
foldergradlew.bat aggregate
from terminal to generate Serenity reportHow can we make it happen?
Add it to the Serenity BDD backlog and wait for a volunteer to pick it up