-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
68 lines (55 loc) · 2.48 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
64
65
66
67
68
buildscript {
ext.spring_boot_version = '1.5.7.RELEASE'
ext.gebVersion = '1.1.1'
ext.seleniumVersion = '3.0.0'
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:$spring_boot_version"
classpath "com.hindsighttesting.behave:behave-gradle-task:1.0.0-1"
}
repositories {
maven { url 'http://repo.hindsightsoftware.com/public-maven' }
}
}
plugins {
id "java"
id "org.springframework.boot" version "1.5.7.RELEASE"
}
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
task behavefeatures(type: com.hindsighttesting.behave.gradle.FeaturesTask) {
projectKey = '10300'
server = 'http://s-v1-260:8080'
username = 'Gradle2'
password = 'gradle'
destinationDir = 'src/test/resources/features'
}
task deleteOldFeatures(type: Delete) {
delete fileTree(dir: "src/test/resources/features")
}
test.dependsOn(behavefeatures)
behavefeatures.dependsOn(deleteOldFeatures)
springBoot {
mainClass = 'de.lineas.bddemo.Application' // tell Spring Boot where the main class is. Otherwise not booting.
}
dependencies {
compile 'org.springframework.boot:spring-boot-starter-thymeleaf' // server-side model-view framework
compile("org.springframework.boot:spring-boot-starter-data-rest") // use Rest Resources
compile("org.springframework.boot:spring-boot-starter-data-jpa") // Database stuff
compile("org.webjars:jquery:2.0.3-1") // jquery einfach einbinden! Yeah!
runtime("org.hsqldb:hsqldb") // embedded database
testCompile('org.chiknrice:concordion-spring-runner:0.0.1') // Runner to integrate Spring with Concordion
testCompile('org.springframework.boot:spring-boot-starter-test') // makes @SpringBootTest possible
testCompile('org.concordion:concordion:2.1.1')
testCompile('info.cukes:cucumber-java:1.2.4') // cucumber language for java
testCompile('info.cukes:cucumber-junit:1.2.4') // RunWith(Cucumber.class) possible
testCompile('info.cukes:cucumber-spring:1.2.4') // Spring automatically looks for features and StepDefs
testCompile 'com.codeborne:selenide:4.6' // test Framework for UA tests
testCompile group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '2.2.1'
}
test {
testLogging.showStandardStreams = true // display test output on console
systemProperties['concordion.output.dir'] = "$reporting.baseDir/spec" // write output to build/reports/spec
outputs.upToDateWhen { false } // force tests to run even if code hasn't changed
}