Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c724493

Browse files
committed
Updated documentation.
Resolves: #1010
1 parent 00d0fb4 commit c724493

1 file changed

Lines changed: 24 additions & 3 deletions

File tree

docs/userguide/annotations.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,33 @@
33
# Annotations
44

55
Annotations are used to configure tests and suites in a declarative way similar to modern OOP languages. This way, test configuration is stored along with the test logic inside the test package.
6-
No configuration files or tables are needed. The annotation names are based on popular testing frameworks such as JUnit.
6+
No additional configuration files or tables are needed for test cases. The annotation names are based on popular testing frameworks such as JUnit.
77
The framework runner searches for all the suitable annotated packages, automatically configures suites, forms the suite hierarchy, executes it and reports results in specified formats.
88

9-
Annotations are interpreted only in the package specification and are case-insensitive. We strongly recommend using lower-case annotations as described in this documentation.
9+
Annotation is defined by:
10+
- single line comment `--` (double dash)
11+
- followed directly by a `%` (percent)
12+
- followed by annotation name
13+
- followed by optional annotation text placed in single brackets.
1014

11-
There are two distinct types of annotations, identified by their location in package:
15+
All of text between first opening bracket and last closing bracket in annotation line is considered to be annotation text
16+
17+
Examples:
18+
`--%suite(The name of my test suite)` - represents `suite` annotation with text `The name of my test suite`
19+
20+
utPLSQL interprets the whole line of annotation and will treat all the text from the first opening bracket in the line to the last closing bracket
21+
22+
Example:
23+
`--%suite(Stuff) -- we should name this ( correctly )` - represents `suite` annotation with text `Stuff) -- we should name this ( correctly `
24+
25+
Do not place comments within annotation line to avoid unexpected behaviors.
26+
27+
**Note:**
28+
>Annotations are interpreted only in the package specification and are case-insensitive. We strongly recommend using lower-case annotations as described in this documentation.
29+
30+
There are two distinct types of annotations, identified by their location in package.
31+
- package annotations
32+
- procedure annotations
1233

1334
### Procedure level annotations
1435

0 commit comments

Comments
 (0)