serenity-bdd / serenity-cucumber4

Other
13 stars 10 forks source link

Test does not generate index.html #11

Open mypark opened 5 years ago

mypark commented 5 years ago

Sample project exhibiting this behavior here: https://github.com/mypark/hello.cucumber

I tried following the getting started example and adding to a hello cucumber project, and it doesn't show any errors and generates some html files, but doesn't generate an index.html and some other landing pages. It does generate the test result pages however.

wrapper.gradleVersion = '5.5.1'
def cucumberVersion = '4.2.0'
def junitVersion = '5.5.0'

repositories {
    jcenter()
    mavenCentral()
}

configurations.all {
    resolutionStrategy {
        force "io.cucumber:cucumber-core:${cucumberVersion}"
    }
}

dependencies {
    testCompile (
        "net.serenity-bdd:serenity-core:2.0.76",
        "net.serenity-bdd:serenity-cucumber4:1.0.21",
        "io.cucumber:cucumber-core:${cucumberVersion}",
        "org.slf4j:slf4j-api:1.7.29",
        "org.slf4j:slf4j-simple:1.7.29"
    )

    testImplementation "io.cucumber:cucumber-java:${cucumberVersion}"
    testImplementation "io.cucumber:cucumber-junit:${cucumberVersion}"

    testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
    testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
    testRuntimeOnly "org.junit.vintage:junit-vintage-engine:${junitVersion}"
}
wakaleo commented 5 years ago

Did you try running "gradle aggregate"?

mypark commented 5 years ago

Ah yes, I tried that and it seems to generate the index.html now - however it doesn't seem to generate the feature/requirements pages. When I click into the requirements tab it's empty.

If I click into test results, I see the name of the feature along with the scenario, but clicking into the feature is a 404. Is there something I need to be doing to make sure the feature list shows up in requirements tab and html files for features are generated as well?