e2ed
Version:
E2E testing framework over Playwright
14 lines (11 loc) • 494 B
text/typescript
import type {GetMainTestRunParams} from 'autotests/configurator';
/**
* This hook is used to get main test run parameters for reporting.
* The resulting value is used in test runs list in HTML report,
* and usually it should uniquely characterize the test, for example, as id.
*/
export const getMainTestRunParams: GetMainTestRunParams = (testRun) => {
// As with all hooks, you can replace it with your own implementation.
const {options} = testRun;
return options.meta.testId;
};