-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle
39 lines (32 loc) · 1.12 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
apply plugin: 'scala'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
testCompile 'org.slf4j:slf4j-api:1.7.5'
testCompile "io.gatling.highcharts:gatling-charts-highcharts:2.1.7"
testCompile "junit:junit:4.11"
}
task warmUp(type: JavaExec, dependsOn: compileTestScala) {
systemProperties = System.properties
main = 'io.gatling.app.Gatling'
classpath sourceSets.test.output + sourceSets.test.runtimeClasspath
args '--no-reports',
'--simulation',
'com.menelic.jwcb.gatling.WarmUpSimulation',
'--binaries-folder',
sourceSets.test.output.classesDir
}
task runGatlingTest(type: JavaExec, dependsOn: warmUp) {
systemProperties = System.properties
main = 'io.gatling.app.Gatling'
classpath sourceSets.test.output + sourceSets.test.runtimeClasspath
args '--simulation',
'com.menelic.jwcb.gatling.RestApiSimulation',
'--binaries-folder',
sourceSets.test.output.classesDir,
'--results-folder',
'build/reports/gatling'
}
task wrapper(type: Wrapper) { gradleVersion = '2.11' }