forked from bancolombia/serenity-parallel-execution-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
77 lines (65 loc) · 2.67 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
69
70
71
72
73
74
75
76
77
plugins {
id 'groovy'
id 'java-gradle-plugin'
id "com.palantir.idea-test-fix" version "0.1.0"
id "com.gradle.plugin-publish" version "0.10.1"
}
apply plugin: 'jacoco'
repositories {
jcenter()
}
jacoco {
toolVersion = "0.7.6.201602180812"
reportsDir = file("$buildDir/jacoco/")
}
dependencies {
implementation gradleApi()
implementation group: 'commons-io', name: 'commons-io', version: '2.6'
implementation group: 'com.google.guava', name: 'guava', version: '27.0.1-jre'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.8.1'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.12.1'
testImplementation gradleTestKit()
testImplementation 'junit:junit:4+'
testImplementation group: 'org.powermock', name: 'powermock-module-junit4', version: '2.0.0'
testImplementation group: 'org.powermock', name: 'powermock-api-mockito2', version: '2.0.0'
testImplementation group: 'org.hamcrest', name: 'hamcrest', version: '2.1'
testCompile('org.spockframework:spock-core:1.1-groovy-2.4') {
exclude group: 'org.codehaus.groovy'
}
}
project.description = 'Plugin to execute automated Serenity BDD tests in parallel easily'
project.group = 'co.com.bancolombia.certification'
project.version = '1.0.2'
project.ext.pluginId = 'co.com.bancolombia.serenity-parallel-execution-plugin'
gradlePlugin {
plugins {
parallelPlugin {
id = project.pluginId
implementationClass = 'co.com.bancolombia.certification.plugins.ParallelPlugin'
displayName = 'Serenity Parallel Execution Plugin'
description = 'Plugin to execute automated Serenity BDD tests in parallel easily'
}
}
}
sourceSets {
functionalTest {
groovy.srcDir file('src/functionalTest/groovy')
resources.srcDir file('src/functionalTest/resources')
compileClasspath += sourceSets.main.output + configurations.testRuntime
runtimeClasspath += output + compileClasspath
}
}
task functionalTest(type: Test) {
description = 'Runs functional tests.'
group = 'verification'
testClassesDirs = sourceSets.functionalTest.output.classesDirs
classpath = sourceSets.functionalTest.runtimeClasspath
mustRunAfter test
}
pluginBundle {
website = 'https://github.com/bancolombia/serenity-parallel-execution-plugin'
vcsUrl = 'https://github.com/bancolombia/serenity-parallel-execution-plugin'
description = 'Plugin to execute automated Serenity BDD tests in parallel easily'
tags = ['gradle', 'plugin', 'serenity', 'paralellExecution', 'Mobile', 'Desktop']
}
check.dependsOn functionalTest