-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
What even did "Intermediate Usage" really mean??
- Loading branch information
1 parent
1eaa9b9
commit aee040a
Showing
11 changed files
with
344 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
These [**CanaryTest**](api-introduction.md) methods allow filtering of tests; tests that do not satisfy a provided filter will be skipped when tests are run. | ||
|
||
The [**doReport**](api-running-tests.md#doreport) method utilizes [**applyFilter**](api-filtering-tests.md#applyfilter) to support filtering tests by name, [tags](api-tagging-tests.md), and file paths. | ||
|
||
# applyFilter | ||
|
||
Applies a filter function recursively to a test group and all of its children. Tests for which no ancestors or descendants satisfy the filter will be marked, then skipped when tests are run. | ||
|
||
Note that if this method is called for a test group or series, and the group has not already been expanded, then this method will cause it to be expanded. (As though [**expandGroups**](api-advanced-usage.md#expandgroups) was called.) | ||
|
||
This method is leveraged by [**doReport**](api-running-tests.md#doreport) in order to enforce the filtering criteria that are passed to it. | ||
|
||
**Arguments:** `({function} filter)` | ||
|
||
**Returns:** **true** if this test or any of its descendants satisfied the filter and **false** if not. | ||
|
||
# resetFilter | ||
|
||
Reset filtered state that may have been set by the [**applyFilter**](api-advanced-usage.md#resetfilter) method. Any tests that were previously set as filtered out will be restored to their normal state. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.