serenity-bdd / serenity-core

Serenity BDD is a test automation library designed to make writing automated acceptance tests easier, and more fun.
http://serenity-bdd.info
Other
723 stars 518 forks source link

Fail to aggregate after serenity-gradle-plugin upgrade from 4.0.46 to 4.2.1 #3550

Open wlbaker opened 1 month ago

wlbaker commented 1 month ago

What happened?

Migrating from 4.0.46 to 4.2.1, the aggregate step fails and gradle reports missing properties. I have a slightly modified aggregate task that worked in 4.1.14 and earlier. Looked through the source and don't see relevant changes in serenty. Gradle version 8.7 (unchanged). Properties reported as not configured:

Log snippet: ... SAVING TEST RESULTS for ... .xml FAILURE: Build failed with an exception.


Will continue to investigate and update as possible.

What did you expect to happen?

Expected aggregate task to generate report successfully.

Serenity BDD version

4.2.1

JDK version

17.0.12 (Eclipse Adoptium 17.0.12+7)

Execution environment

Mac OS X 14.6.1 aarch64

RHEL openjdk version "17.0.8" 2023-07-18 LTS OpenJDK Runtime Environment (Red_Hat-17.0.8.0.7-1) (build 17.0.8+7-LTS) OpenJDK 64-Bit Server VM (Red_Hat-17.0.8.0.7-1) (build 17.0.8+7-LTS, mixed mode, sharing)

How to reproduce the bug.

./gradlew aggregate

How can we make it happen?

Work on this myself and propose a PR (with Serenity BDD team guidance)

zzoubian commented 1 month ago

Do you know how to prevent the gradle plugin from aggregating the reports? I noticed in recent versions of Serenity it always aggregates the report.