-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
63 lines (52 loc) · 2.08 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import tsga.gradle.TsgaPlugin
import static tsga.dsl.StatisticalProperty.MEAN
import static tsga.dsl.StatisticalProperty.P50
import static tsga.dsl.TimeUnit.seconds
plugins {
id 'java'
id 'java-gradle-plugin'
}
apply plugin: 'groovy'
apply plugin: TsgaPlugin
tsga {
gatlingLogDirectory = "${project.rootDir}/test_data"
expectedShapes = [
"aws_HeartbeatV1_EXPIRED": {
between seconds, 0, 170, "initial load", {
assertThat MEAN is 80 withStandardDeviation 100
}
between seconds, 190, 290, "umv response time 300ms", {
assertThat MEAN is 270 withStandardDeviation 100
}
between seconds, 310, 410, "umv response time back to 100ms", {
assertThat MEAN is 80 withStandardDeviation 100
}
between seconds, 430, 530, "umv timeout", {
assertThat P50 between 1400, 1600
}
between seconds, 550, 600, "umv response time back to 100ms", {
assertThat MEAN is 80 withStandardDeviation 100
}
}
]
}
group = 'uk.co.novinet'
version = '1.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
maven { url "http://central.maven.org/maven2/" }
maven { url "https://repo.spring.io/libs-release" }
maven { url "https://repo.maven.apache.org/maven2" }
}
dependencies {
compile group: 'org.apache.commons', name: 'commons-csv', version:'1.7'
compile group: 'org.apache.commons', name: 'commons-math3', version:'3.6.1'
compile group: 'commons-io', name: 'commons-io', version:'2.6'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version:'2.9.10'
compile group: 'org.codehaus.groovy', name: 'groovy-all', version:'2.4.16'
compile group: 'org.gradle', name: 'api', version: '1.0'
compileOnly gradleApi()
testCompile group: 'org.spockframework', name: 'spock-core', version:'1.1-groovy-2.4'
testCompile group: 'junit', name: 'junit', version:'4.12'
}