-
-
Notifications
You must be signed in to change notification settings - Fork 441
Open
Labels
Milestone
Description
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 {
}