UNPKG

playwright-performance-reporter

Version:

Measure and publish performance metrics from browser dev-tools when running playwright

18 lines (17 loc) 528 B
import { type TestCase } from '@playwright/test/reporter'; import { type TestPerformance } from '../types/index.js'; /** * Create generic `TestPerformance` object to fill during measurements * * @param name identifier for the performance metrics */ export declare function buildTestPerformance(name: string): TestPerformance; /** * Get id and name from test hierarchy * * @param testCase case from test suite */ export declare function buildTestCaseIdentifier(testCase: TestCase): { id: string; name: string; };