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-16Lines changed: 19 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1225,7 +1225,7 @@ Finished in .035261 seconds
1225
1225
1226
1226
### Tags
1227
1227
1228
-
Tag is a label attached to the test or a suite. It is used for identification and execution a group of tests / suites that share same tag.
1228
+
Tag is a label attached to the test or a suite. It is used for identification and execution of a group of tests / suites that share the same tag.
1229
1229
1230
1230
It allows for grouping of tests / suites using various categorization and place tests / suites in multiple buckets. Same tests can be grouped with other tests based on the functionality , frequency, type of output etc.
1231
1231
@@ -1244,15 +1244,15 @@ or
1244
1244
1245
1245
Tags are defined as a comma separated list within the `--%tags` annotation.
1246
1246
1247
-
When executing a test run with tag filter applied, framework will find all tests associated with given tags and execute them.
1248
-
Framework applies `OR` logic to all specified tags so any test / suite that matches at least one tag will be included in the test run.
1247
+
When executing a test run with tag filter applied, the framework will find all tests associated with the given tags and execute them.
1248
+
The framework applies `OR` logic to all specified tags so any test / suite that matches at least one tag will be included in the test run.
1249
1249
1250
-
When a suite/context is tagged all of its children will automatically inherit a tag and get executed along with the parent. Parent suite tests are not executed, but a suitepath hierarchy is kept.
1250
+
When a suite/context is tagged, all of its children will automatically inherit the tag and get executed along with the parent. Parent suite tests are not executed, but a suitepath hierarchy is kept.
1251
1251
1252
1252
1253
1253
Sample test suite package with tags.
1254
1254
```sql
1255
-
create or replace package ut_sample_test IS
1255
+
create or replace package ut_sample_test is
1256
1256
1257
1257
--%suite(Sample Test Suite)
1258
1258
--%tags(api)
@@ -1289,7 +1289,7 @@ end ut_sample_test;
1289
1289
/
1290
1290
```
1291
1291
1292
-
Execution of the test is done by using a parameter `a_tags`
1292
+
Execution of the test is done by using the parameter `a_tags`
The above call will execute all suites/contexts/tests that are marked with any of tags `api` or `fast` except those suites/contexts/tests that are marked as `complex`
1331
+
The above call will execute all suites/contexts/tests that are marked with any of tags `api` or `fast` except those suites/contexts/tests that are marked as `complex`.
1320
1332
Given the above example package `ut_sample_test`, only `ut_sample_test.ut_test` will be executed.
1321
1333
1322
-
**Note:**
1323
-
Tags must follow the below naming convention:
1324
-
1325
-
- tag is case sensitive
1326
-
- tag can contain special characters like `$#/\?-!` etc.
1327
-
- tag cannot be an empty string
1328
-
- tag cannot start with a dash e.g. `-some-stuff` is **not** a valid tag
1329
-
- tag cannot contain spaces e.g. `test of batch`. To create a multi-word tag use underscores or dashes e.g. `test_of_batch`, `test-of-batch`
1330
-
- leading and trailing spaces are ignored in tag name e.g. `--%tags( tag1 , tag2 )` becomes `tag1` and `tag2` tag names
In addition to the path, you can filter the tests to be run by specifying tags. Tags are defined in the test with the `--%tags`-annotation ([Read more](annotations.md#tags)).
288
-
Multiple tags are separated by comma. If multiple tags are set, all tests with __any__ of them specified are run.
287
+
In addition to the path, you can filter the tests to be run by specifying tags. Tags are defined in the test / context / suite with the `--%tags`-annotation ([Read more](annotations.md#tags)).
288
+
Multiple tags are separated by comma.
289
+
The framework applies `OR` logic to all specified tags so any test / suite that matches at least one tag will be included in the test run.
0 commit comments