-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
107 lines (101 loc) · 3.24 KB
/
pom.xml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>demoCode</groupId>
<artifactId>karateframework</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>11</java.version>
<maven.compiler.version>3.8.1</maven.compiler.version>
<maven.surefire.version>2.22.2</maven.surefire.version>
<karate.version>1.1.0</karate.version>
</properties>
<dependencies>
<dependency>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-junit5</artifactId>
<version>${karate.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.masterthought</groupId>
<artifactId>cucumber-reporting</artifactId>
<version>3.15.0</version>
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<directory>src/test/java</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.version}</version>
<configuration>
<encoding>UTF-8</encoding>
<source>${java.version}</source>
<target>${java.version}</target>
<compilerArgument>-Werror</compilerArgument>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.version}</version>
<configuration>
<argLine>-Dfile.encoding=UTF-8</argLine>
<!-- <includes> -->
<!-- <include>**/ParallelBuilder.java</include> -->
<!-- </includes> -->
<!-- <includes> -->
<!-- <include>**/ParallelRunnerWithTags.java</include> -->
<!-- </includes> -->
<!-- <systemProperties> -->
<!-- <location>com/api/automation</location> -->
<!-- <tags>@Regression</tags> -->
<!-- </systemProperties> -->
<!-- <rerunFailingTestsCount>2</rerunFailingTestsCount> -->
<includes>
<include>**/ParallelBuilderWithCucumberReport.java</include>
</includes>
<rerunFailingTestsCount>2</rerunFailingTestsCount>
<systemProperties>
<karate.env>${karate.profile}</karate.env>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>staging</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<karate.profile>staging</karate.profile>
</properties>
</profile>
<profile>
<id>preprod</id>
<properties>
<karate.profile>preprod</karate.profile>
</properties>
</profile>
<profile>
<id>prod</id>
<properties>
<karate.profile>prod</karate.profile>
</properties>
</profile>
</profiles>
</project>