Function: findTest()
June 6, 2026 ยท View on GitHub
CTRF / findTest
Function: findTest()
findTest(
report,criteria):Test|undefined
Defined in: filter.ts:57
Parameters
report
The CTRF report to search
criteria
Filter criteria including id, name, status, tags, etc.
Returns
Test | undefined
The first matching test, or undefined if not found
Example
// Find by ID
const test = findTest(report, { id: 'uuid' });
// Find by name
const test = findTest(report, { name: 'should login' });
// Find by multiple criteria
const test = findTest(report, { status: 'failed', flaky: true });