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
722 stars 518 forks source link

Sigle html report generate Error #3061

Open apulido15 opened 1 year ago

apulido15 commented 1 year ago

When i execute gradle reports command i get the next error:

PROCESSING EXTENDED REPORTS: [single-page-html]
No report found on classpath with name single-page-html

and the report is not generated. i have tried everything, change the serenity versions, change the gradle versions, delete the caches, and the report is not generated; please someone help me with this.

The info in the project is:

buildscript {
    repositories {
        mavenCentral()
        mavenLocal()
        jcenter()
    }
    dependencies {
        classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.0"
        classpath "net.serenity-bdd:serenity-gradle-plugin:3.3.10"
        classpath "net.serenity-bdd:serenity-single-page-report:3.3.10"
      }
}

plugins {
    id "java"
    id "org.sonarqube" version "3.0"
}

ext{
    serenityCore = '3.3.10'
}

apply plugin: 'org.sonarqube'
apply from: "************/java-serenity-project.gradle"
apply from: "*************/static-code-analysis/spotless.gradle"

serenity {
    reports = ["single-page-html"]
}

dependencies {
    implementation "net.serenity-bdd:serenity-core:${serenityCore}"
    implementation "net.serenity-bdd:serenity-rest-assured:${serenityCore}"
    implementation "net.serenity-bdd:serenity-screenplay-rest:${serenityCore}"
    implementation "net.serenity-bdd:serenity-junit:${serenityCore}"
    implementation "net.serenity-bdd:serenity-screenplay:${serenityCore}"
    testImplementation "net.serenity-bdd:serenity-cucumber:${serenityCore}"
    annotationProcessor 'org.projectlombok:lombok:1.18.10'
    implementation 'org.projectlombok:lombok:1.18.10'
    implementation 'ch.qos.logback:logback-classic:1.0.13'
    implementation 'org.assertj:assertj-core:3.6.2'
    implementation 'com.esotericsoftware.yamlbeans:yamlbeans:1.13'
    implementation 'com.fasterxml.jackson.core:jackson-core:2.9.6'
    implementation 'com.fasterxml.jackson.core:jackson-annotations:2.9.6'
    implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.6'
    implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.10.1'
    implementation 'com.google.guava:guava:27.1-jre'
    implementation 'com.github.javafaker:javafaker:0.12'
    implementation 'com.googlecode.json-simple:json-simple:1.1.1'
    implementation 'io.rest-assured:json-schema-validator:4.1.2'
    implementation 'org.json:json:20180813'
    implementation 'org.bouncycastle:bcpkix-jdk15on:1.60'
    implementation 'org.apache.commons:commons-text:1.6'
    implementation 'org.bouncycastle:bcprov-jdk15on:1.60'
    implementation 'org.bouncycastle:bcprov-ext-jdk15on:1.60'
    testImplementation 'junit:junit:4.13'
    testImplementation 'org.hamcrest:hamcrest-all:1.3'
    testAnnotationProcessor 'org.projectlombok:lombok:1.18.10'
}

test {
    systemProperties System.getProperties()
}

sonarqube {
    properties {
        property "sonar.projectKey", "projectNAme"
        property "sonar.projectName", "projectNAme"
        property "sonar.sources", "src"
        property "sonar.sourceEncoding", "UTF-8"
        property "sonar.java.binaries", "build/classes"
        property "sonar.coverage.exclusions", "**/*.java"
        property "sonar.exclusions", "**/*Generated.java"
        property "sonar.exclusions", "**/*Expenses*.java"
        property "sonar.tests", ""
        property "sonar.login", "*******"
    }
}

tasks.withType(Test) {
    systemProperty "file.encoding", "UTF-8"
}

tasks.withType(JavaCompile) {
    options.encoding = 'UTF-8'
}

gradle.startParameter.continueOnFailure = true
compileJava.dependsOn 'spotlessApply', 'licenseFormat'
test.finalizedBy(aggregate, reports)

In addition the gradle version is:

------------------------------------------------------------
Gradle 8.0
------------------------------------------------------------

Build time:   2023-02-13 13:15:21 UTC
Revision:     62ab9b7c7f884426cf79fbedcf07658b2dbe9e97

Kotlin:       1.8.10
Groovy:       3.0.13
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          11.0.16 (Oracle Corporation 11.0.16+11-LTS-199)
OS:           Mac OS X 12.5.1 x86_64
cb-duppanapudisurya commented 1 year ago

facing the same issue

jocordova commented 11 months ago

I figured out ...

You need to setup the single-html-report dependency as part of the build.gradle buildscript as follows ...

buildscript { repositories { mavenLocal() } dependencies { classpath "net.serenity-bdd:serenity-gradle-plugin:4.0.30" classpath "net.serenity-bdd:serenity-single-page-report:4.0.30" } }

apply plugin: "net.serenity-bdd.serenity-gradle-plugin"

-or-

buildscript { repositories { mavenLocal() } dependencies { classpath "net.serenity-bdd:serenity-single-page-report:4.0.30" } }

plugins { id 'java' id 'net.serenity-bdd.serenity-gradle-plugin' version '4.0.30' }

Sreenu-Paila commented 7 months ago

facing same issue. Any updates?