Details
-
New Feature
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
N/A
Description
The current implementation supports:
1. Exact match
- Example: spider.auto_increment
- Lookup: test_name__exact
2. Substring match using the special *. notation
- Example: *.sp-error
- Lookup: test_name__icontains
- The * character is stripped before applying the lookup, while the leading `.` remains.
This special "." syntax was designed to support substring lookups only for the portion of the test name that comes after the suite separator "." . In practice, it allows searching with icontains only after the test suite name, instead of supporting more general wildcard-style matching.
For example:
- *.sp-error searches for .sp-error inside test_name
As a result, the current behavior is limited and not intuitive for users who expect more general prefix, suffix, or contains matching.
Proposed changes
Update filters.test_name to support four matching modes:
1. Exact match
- Input: string
- Lookup: test_name__exact
2. Ends with
- Input: *string
- Lookup: test_name__endswith
3. Contains
- Input: *string*
- Lookup: test_name__contains
4. Starts with
- Input: string*
- Lookup: test_name__startswith