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

No summary-report.html is generated version 3.6.7 #3066

Open ngavrish opened 1 year ago

ngavrish commented 1 year ago
plugins {
    id "net.serenity-bdd.serenity-gradle-plugin" version "3.6.7"
    id 'java'
    //id "org.hibernate.orm" version "6.1.6.Final"
}

defaultTasks 'clean', 'test', 'aggregate', 'reports'

repositories {
    flatDir {
        dirs '/Users/802619/projects/silverbird/testautomation/silverbird-serenity-autotest/libs'
    }
    mavenCentral()
    maven {
        url "https://plugins.gradle.org/m2/"
    }
    maven {
        url "https://repo1.maven.org"
    }
    maven {
        url "https://repo1.maven.org/maven2/"
    }
    maven {
        url "https://repository.jboss.org/nexus/content/repositories/releases/"
    }
    maven {
        url "https://repo.maven.apache.org/maven2/"
    }
    maven {
        url "https://repo.clojars.org"
    }
    maven {
        url "https://clojars.org/repo/"
    }

//    maven (uri("/Users/802619/projects/silverbird/testautomation/silverbird-serenity-autotest/libs/hibernate-commons-annotations-6.0.2.Final.jar"))

}

sourceCompatibility = 1.8
targetCompatibility = 1.8

ext {
    slf4jVersion = '1.7.7'
    serenityCoreVersion = '3.6.7'
    junitVersion = '5.8.2'
    assertJVersion = '3.23.1'
    lombokVersion = '1.18.24'
    logbackVersion = '1.2.11'
    redisVersion = '4.3.1'
    mysqlVersion = '8.0.32'
    hibernateVersion = '6.1.6'
    glassfishVersion = '3.0.0'
}

dependencies {
    'org.hibernate.common:hibernate-commons-annotations:6.0.2.Final'
    testImplementation "net.serenity-bdd:serenity-core:${serenityCoreVersion}",
            "net.serenity-bdd:serenity-junit5:${serenityCoreVersion}",
            "org.junit.jupiter:junit-jupiter-api:${junitVersion}",
            "org.junit.jupiter:junit-jupiter-engine:${junitVersion}",
            "org.junit.vintage:junit-vintage-engine:${junitVersion}",
            "org.assertj:assertj-core:${assertJVersion}",
            "org.projectlombok:lombok:${lombokVersion}",
            "ch.qos.logback:logback-classic:${logbackVersion}",
            "net.serenity-bdd:serenity-screenplay:${serenityCoreVersion}",
            "net.serenity-bdd:serenity-ensure:${serenityCoreVersion}",
            "net.serenity-bdd:serenity-screenplay-webdriver:${serenityCoreVersion}"
    implementation "redis.clients:jedis:${redisVersion}"
    implementation "mysql:mysql-connector-java:${mysqlVersion}"
//    Problem with 6.1.6:
//    https://stackoverflow.com/questions/75362930/hibernate-6-x-fails-could-not-resolve-org-hibernate-commonhibernate-commons-ann
    //implementation('org.hibernate:hibernate-core:6.1.6.Final')
    implementation('org.hibernate:hibernate-core:5.6.1.Final')
    "org.glassfish.jaxb:jaxb-runtime:${glassfishVersion}"
    implementation "net.serenity-bdd:serenity-gradle-plugin:${serenityCoreVersion}"
    implementation "net.serenity-bdd:serenity-single-page-report:${serenityCoreVersion}"
}

test {
    useJUnitPlatform()
    testLogging.showStandardStreams = true
    systemProperties System.getProperties()
}

gradle.startParameter.continueOnFailure = true

test.finalizedBy(aggregate, reports)

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

    // Specify the root package of any JUnit acceptance tests
//    testRoot="frontoffice"
}

//apply plugin: "org.hibernate.orm"
apply plugin: "net.serenity-bdd.serenity-gradle-plugin"
apply plugin: 'maven-publish'
ngavrish commented 1 year ago

Task :reports Generating Additional Serenity Reports for silverbird-serenity-autotest to directory /Users/802619/projects/silverbird/testautomation/silverbird-serenity-autotest/target/site/serenity No report found on classpath with name single-page-html