|
110 | 110 | <maven-plugin-annotations.version>3.15.1</maven-plugin-annotations.version> |
111 | 111 | <slf4j.version>2.0.16</slf4j.version> |
112 | 112 | <logback.version>1.5.12</logback.version> |
| 113 | + <!-- versions of test dependencies --> |
| 114 | + <jacoco.version>0.8.12</jacoco.version> |
113 | 115 | <jacoco.version>0.8.12</jacoco.version> |
114 | 116 | <testng.version>7.10.2</testng.version> |
115 | 117 | </properties> |
116 | 118 |
|
117 | 119 | <dependencyManagement> |
118 | 120 | <dependencies> |
| 121 | + <!-- Project modules version --> |
| 122 | + <dependency> |
| 123 | + <groupId>net.continuous-security-tools</groupId> |
| 124 | + <artifactId>zap-utils</artifactId> |
| 125 | + <version>${project.version}</version> |
| 126 | + </dependency> |
| 127 | + <dependency> |
| 128 | + <groupId>net.continuous-security-tools</groupId> |
| 129 | + <artifactId>zap-client-api</artifactId> |
| 130 | + <version>${project.version}</version> |
| 131 | + </dependency> |
| 132 | + <!-- Dependencies --> |
119 | 133 | <dependency> |
120 | 134 | <groupId>org.jopendocument</groupId> |
121 | 135 | <artifactId>jdom</artifactId> |
|
176 | 190 | <artifactId>testng</artifactId> |
177 | 191 | <version>${testng.version}</version> |
178 | 192 | </dependency> |
179 | | - |
180 | | - <!-- Project modules version --> |
181 | | - <dependency> |
182 | | - <groupId>net.continuous-security-tools</groupId> |
183 | | - <artifactId>zap-utils</artifactId> |
184 | | - <version>${project.version}</version> |
185 | | - </dependency> |
186 | | - <dependency> |
187 | | - <groupId>net.continuous-security-tools</groupId> |
188 | | - <artifactId>zap-client-api</artifactId> |
189 | | - <version>${project.version}</version> |
190 | | - </dependency> |
191 | 193 | </dependencies> |
192 | 194 | </dependencyManagement> |
193 | 195 |
|
|
243 | 245 | </configuration> |
244 | 246 | </plugin> |
245 | 247 |
|
| 248 | + <!-- Coverage metering --> |
| 249 | + <plugin> |
| 250 | + <groupId>org.jacoco</groupId> |
| 251 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 252 | + <version>${jacoco.version}</version> |
| 253 | + <executions> |
| 254 | + <execution> |
| 255 | + <goals> |
| 256 | + <goal>prepare-agent</goal> |
| 257 | + </goals> |
| 258 | + <configuration> |
| 259 | + <propertyName>surefire.argLine</propertyName> |
| 260 | + </configuration> |
| 261 | + </execution> |
| 262 | + <!-- attached to Maven test phase --> |
| 263 | + <execution> |
| 264 | + <id>report</id> |
| 265 | + <phase>test</phase> |
| 266 | + <goals> |
| 267 | + <goal>report</goal> |
| 268 | + </goals> |
| 269 | + <configuration> |
| 270 | + <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory> |
| 271 | + </configuration> |
| 272 | + </execution> |
| 273 | + </executions> |
| 274 | + </plugin> |
| 275 | + |
246 | 276 | <!-- Integration tests execution --> |
247 | 277 | <plugin> |
248 | 278 | <groupId>org.apache.maven.plugins</groupId> |
|
0 commit comments