serenity-bdd / serenity-cucumber5

Other
14 stars 14 forks source link

Any exclusuions when using serenity-cucumber6 with rest-assured? #27

Open sudheerah opened 2 years ago

sudheerah commented 2 years ago

Hi, Just wanted know anything needs to exclude if uses serenity-cucumber6 with rest-assured

Below are the versions I am using:

Java17
Gradle 7.4.2
serenity-cucumber6 - 2.6.0
serenity-rest-assured -  2.6.0
net.serenity-bdd.serenity-gradle-plugin - 3.2.5

I find missing pie charts in the serenity reports. So I doubt some dependency issues/conflicts causing this.

image

sudheerah commented 2 years ago

I was managed to get the charts back after upgrading report libs as below.

        testImplementation "net.serenity-bdd:serenity-reports:3.1.0"
        testImplementation "net.serenity-bdd:serenity-report-resources:3.1.0"

Please make sure exclude other lower version has been added via transitive dependency, if any

testImplementation ("net.serenity-bdd:serenity-rest-assured:2.6.0"){
    exclude group: "net.serenity-bdd", module: "serenity-reports"
    exclude group: "net.serenity-bdd", module: "serenity-report-resources"
}
wakaleo commented 2 years ago

All the serenity library versions must be the same. The latest Cucumber library is serenity-cucumber.