You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A maven plugin for running Unit Tests with utPLSQL v3+.
6
7
7
8
## Compatibility
9
+
8
10
This plugin is compatible with utPLSQL 3.1.0+.
9
11
10
12
## Prerequisites
13
+
11
14
* Java SE Runtime Environment 8
12
15
* Maven Version 3.5+
13
-
* Oracle JDBC driver
16
+
* Oracle JDBC driver
14
17
15
18
```xml
19
+
16
20
<dependency>
17
21
<groupId>com.oracle.database.jdbc</groupId>
18
22
<artifactId>ojdbc8</artifactId>
@@ -27,6 +31,7 @@ This plugin is compatible with utPLSQL 3.1.0+.
27
31
To skip running the tests for a particular project, set the **skipUtplsqlTests** property to true.
28
32
29
33
```xml
34
+
30
35
<configuration>
31
36
<skipUtplsqlTests>true</skipUtplsqlTests>
32
37
</configuration>
@@ -38,9 +43,11 @@ You can also skip the tests via the command line by executing the following comm
38
43
39
44
#### Skipping by Default
40
45
41
-
If you want to skip tests by default but want the ability to re-enable tests from the command line, you need to go via a properties section in the pom:
46
+
If you want to skip tests by default but want the ability to re-enable tests from the command line, you need to go via a
47
+
properties section in the pom:
42
48
43
49
```xml
50
+
44
51
<configuration>
45
52
<skipUtplsqlTests>true</skipUtplsqlTests>
46
53
</configuration>
@@ -55,9 +62,10 @@ This will allow you to run with all tests disabled by default and to run them wi
55
62
Please refer to the following usage example for the parameters descriptions:
<!-- You can pass the name of the reporter and/or the output file -->
169
177
<!-- of the reporter and/or if the report is logged to the console. -->
@@ -194,7 +202,7 @@ Please refer to the following usage example for the parameters descriptions:
194
202
<name>UT_TEAMCITY_REPORTER</name>
195
203
</reporter>
196
204
</reporters>
197
-
205
+
198
206
<!-- Custom source code mapping options. -->
199
207
<!-- See coverage reporting options in framework documentation. -->
200
208
<sourcesOwner>code_owner</sourcesOwner>
@@ -208,7 +216,7 @@ Please refer to the following usage example for the parameters descriptions:
208
216
<customMapping>package_bodies</customMapping>
209
217
</customTypeMapping>
210
218
</sourcesCustomTypeMapping>
211
-
219
+
212
220
<!-- Custom test code mapping options. -->
213
221
<!-- See coverage reporting options in framework documentation. -->
214
222
<testsOwner>tests_owner</testsOwner>
@@ -231,9 +239,12 @@ Please refer to the following usage example for the parameters descriptions:
231
239
</project>
232
240
```
233
241
234
-
More project samples are available in the src/test/resources/integration-tests directory:
242
+
More project samples are available in the `src/test/resources-its/org/utplsql/maven/plugin/UtPlsqlMojoIT`
243
+
directory:
244
+
235
245
***simple-project:** Minimalist test project with standard project directory structure.
236
-
***regex-project:** Overrides project directory structure and use additional parameters (sourcesRegexExpression, testsRegexExpression, ...), to tell utPLSQL how project files should be mapped into database objects.
246
+
***regex-project:** Overrides project directory structure and use additional parameters (sourcesRegexExpression,
247
+
testsRegexExpression, ...), to tell utPLSQL how project files should be mapped into database objects.
237
248
***type-mapping-project:** Example how to use regex and custom type parameters together.
238
249
***owner-param-project:** Demonstrates how to use sourcesOwner and testsOwner parameters.
0 commit comments