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

Sigle html report generate Error #3061

Open
apulido15 opened this issue Feb 20, 2023 · 3 comments
Open

Sigle html report generate Error #3061

apulido15 opened this issue Feb 20, 2023 · 3 comments

Comments

@apulido15
Copy link

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
Copy link

facing the same issue

@jocordova
Copy link

jocordova commented Dec 30, 2023

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
Copy link

facing same issue. Any updates?

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