Package com.thoughtworks.gauge
Annotation Type BeforeSpec
Methods annotated with this hook, execute before every Specification execution completes.
The specification can be filtered by passing additional attributes.
If there is more than one method annotated with @BeforeSpec, the order of execution is as follows:
- Hooks which are not filtered by tags.
- Hooks filtered by tags.
-
Optional Element Summary
Optional Elements
-
Element Details
-
tags
String[] tags- Returns:
- Array of tags to filter which specifications the hook runs before.
- Default:
- {}
-
tagAggregation
Operator tagAggregation- Returns:
- OR: if hook should run for a specification containing any of the tags provided AND: if hook should run for a specification containing all of the tags provided Default is AND
- Default:
- AND
-