Function: generateTestId()
February 7, 2026 ยท View on GitHub
CTRF / generateTestId
Function: generateTestId()
generateTestId(
properties):string
Defined in: id.ts:31
Parameters
properties
Test properties to generate ID from
name
string
Test name (required)
suite?
string[]
Suite hierarchy (optional)
filePath?
string
File path (optional)
Returns
string
A deterministic UUID v5 string
Example
const id = generateTestId({
name: 'should add numbers',
suite: ['math', 'addition'],
filePath: 'tests/math.test.ts'
});
// Always returns the same UUID for these inputs