Open IvanZinio opened 1 year ago
try whit this ,is very import versión java and gradle : defaultTasks 'clean', 'test', 'aggregate'
repositories { mavenCentral() mavenLocal() } repositories { maven { url "https://plugins.gradle.org/m2/"
}}
buildscript { repositories { maven { url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "net.serenity-bdd:serenity-gradle-plugin:4.0.12"
}
}
apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'idea' apply plugin: "net.serenity-bdd.serenity-gradle-plugin"
compileJava.options.encoding = "UTF-8" compileTestJava.options.encoding = "UTF-8"
sourceCompatibility = 11 targetCompatibility = 11
ext { // https://mvnrepository.com/artifact/net.serenity-bdd/serenity-cucumber serenity_version = '4.0.12'
junit_platform_launcher_version="1.10.0"
junit_platform_suite_version="1.10.0"
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine
junit_jupiter_engine_version="5.10.0"
junit_vintage_engine_version="5.10.0"
cucumber_junit_platform_engine_version="7.2.3"
logback_classic_version="1.2.10"
assertj_core_version="3.23.1"
}
dependencies { dependencies { testImplementation "net.serenity-bdd:serenity-core:${serenity_version}" testImplementation "net.serenity-bdd:serenity-cucumber:${serenity_version}" testImplementation "net.serenity-bdd:serenity-screenplay:${serenity_version}" testImplementation "net.serenity-bdd:serenity-screenplay-webdriver:${serenity_version}" testImplementation "net.serenity-bdd:serenity-ensure:${serenity_version}" testImplementation "org.junit.platform:junit-platform-launcher:${junit_platform_launcher_version}" testImplementation "io.cucumber:cucumber-junit-platform-engine:${cucumber_junit_platform_engine_version}" testImplementation "org.junit.platform:junit-platform-suite:${junit_platform_suite_version}" testImplementation "org.junit.jupiter:junit-jupiter-engine:${junit_jupiter_engine_version}" testImplementation "org.junit.vintage:junit-vintage-engine:${junit_vintage_engine_version}" implementation "ch.qos.logback:logback-classic:${logback_classic_version}" testImplementation "org.assertj:assertj-core:${assertj_core_version}" } }
test { useJUnitPlatform() testLogging.showStandardStreams = true systemProperties System.getProperties() systemProperty "https.protocols", "TLSv1.2,TLSv1.3" }
gradle.startParameter.continueOnFailure = true
test.finalizedBy(aggregate)
The Java version could have been an issue but actually there is not a difference.
The build.gradle
you have put is for other kind of project with others goals. It doesn't work for me.
What happened?
I have a project for testing API that use Java, Gradle and Serenity to tests API, that works perfectly in different OS.
When I try to upgrade the Serenity libraries from 3.7.0 to 3.9.0 or any upper (ex: 3.9.0 or 4.0.15 or whichever in between), the tests are properly executed in any OS, but curiusly just in Windows 10 it doesn't generate the visual parts of the report. No
css
, norico
, norpng
, nor bootstrap foulder, etc. This results in a basichtml
report.In Unix or Mac the report is generated properly whichever version, we have tried and it works. Just not in Windows OS.
Relevant configuration:
- build.gradle:
- gradle-wrapper.properties:
- serenity.properties:
- TestRunner.java:
What did you expect to happen?
I would like to be able to update the Serenity libraries and generate and see the Serenity BDD report with all the visual parts.
Serenity BDD version
3.9.0 or 4.0.15 or whichever in between
JDK version
java 14.0.2 2020-07-14
Execution environment
Windows 10 - 22H2, 64 bits Browser not relevant (confirmed).
How to reproduce the bug.
We use this command to execute tests:
clean test aggregate -Dcucumber.filter.tags='@run' -DEnv="stg" --info
How can we make it happen?
Work on this myself and propose a PR (with Serenity BDD team guidance)