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
Copy file name to clipboardExpand all lines: docs/userguide/annotations.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1245,7 +1245,9 @@ or
1245
1245
1246
1246
Tags are defined as a coma separated list. When executing a tests filtering by tag utPLSQL will find all tests associated with a given tag and execute it. It will apply `OR` logic when resolving a tags so any tests / suites that got matching at least one tag will get executed.
1247
1247
1248
-
When a suite gets tagged all of its children will automatically inherit a tag and get executed along the parent.
1248
+
When a suite gets tagged all of its children will automatically inherit a tag and get executed along the parent. Parent suit tests are not executed. but a suitepath hierarchy is kept.
1249
+
1250
+
Sample tag package.
1249
1251
1250
1252
```sql
1251
1253
create or replace PACKAGE ut_sample_test IS
@@ -1257,6 +1259,10 @@ create or replace PACKAGE ut_sample_test IS
1257
1259
--%tag(test1,sample)
1258
1260
PROCEDURE ut_refcursors1;
1259
1261
1262
+
--%test(Compare Ref Cursors #2)
1263
+
--%tag(test2,sample)
1264
+
PROCEDURE ut_refcursors2;
1265
+
1260
1266
END ut_sample_test;
1261
1267
/
1262
1268
@@ -1271,7 +1277,17 @@ create or replace PACKAGE BODY ut_sample_test IS
1271
1277
1272
1278
ut.expect(v_actual).to_equal(v_expected);
1273
1279
END;
1280
+
1281
+
PROCEDURE ut_refcursors2 IS
1282
+
v_actual SYS_REFCURSOR;
1283
+
v_expected SYS_REFCURSOR;
1284
+
BEGIN
1285
+
open v_expected for select1as test from dual;
1286
+
open v_actual for select2as test from dual;
1274
1287
1288
+
ut.expect(v_actual).to_equal(v_expected);
1289
+
END;
1290
+
1275
1291
END ut_sample_test;
1276
1292
/
1277
1293
```
@@ -1280,7 +1296,8 @@ Execution of the test is done by using a new parameter `a_tags`
0 commit comments