Skip to content

No CSV report files being generated (java 17 and Gradle 7.4.2)  #473

@nickcotter

Description

@nickcotter

I'm using gradle and the ZeroCodeMultiLoadRunner to run some load tests and the tests execute correctly but no csv files are being generated in the target folder, only target/logs/zerocode_rest_bdd_logs.log and the regular junit output in build/test-results. What am I missing?

This is part of my gradle file - I'm running the tests in a separate source config:

sourceSets {
    loadTest {
        java {
            compileClasspath += main.output + test.output
            runtimeClasspath += main.output + test.output
            srcDirs = ["src/loadTest/java"]
        }
        resources {
            srcDirs = ["src/loadTest/resources"]
        }
    }
}

configurations {
    loadTestImplementation.extendsFrom testImplementation
}

dependencies {
    ... various deps ...
    loadTestImplementation "org.jsmart:zerocode-tdd:1.3.+"
}

task loadTest(type: Test, group: "verification") {
    include '**/*LoadTest.class'
    testClassesDirs = sourceSets.loadTest.output.classesDirs
    classpath = sourceSets.loadTest.runtimeClasspath
    outputs.upToDateWhen { false }

    systemProperty 'zerocode.junit', 'gen-smart-charts-csv-reports'
}

Here is the load test class:

@LoadWith("load-config.properties")
@TestMappings({
        @TestMapping(testClass = CounterRecorderTest.class, testMethod = "whenRecordIsCalledThenCounterIsIncremented"),
        @TestMapping(testClass = DistributionSummaryRecorderTest.class, testMethod = "whenRecordIsCalledThenTimingsAreRecorded"),
        @TestMapping(testClass = TimerRecorderTest.class, testMethod = "whenRecordIsCalledThenTimingsAreRecorded")})
@RunWith(ZeroCodeMultiLoadRunner.class)
public class RecorderLoadTest {
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions