@testpulse.run/reporter
v0.3.0
Published
Preconfigured TestPulse Playwright reporter using the JSONL reporter with HTTP ingest.
Maintainers
Readme
@testpulse.run/reporter
Official Playwright reporter for TestPulse.
This package sends Playwright test events to the TestPulse ingest endpoint using the JSONL event pipeline. It is the package most projects should install.
Installation
npm install -D @testpulse.run/reporter @playwright/testPlaywright Configuration
import { defineConfig } from "@playwright/test";
export default defineConfig({
reporter: [["@testpulse.run/reporter"]]
});Authentication
Set your API key in the environment used by Playwright:
TESTPULSE_API_KEY=your-api-key npx playwright testOptions
export default defineConfig({
reporter: [
[
"@testpulse.run/reporter",
{
apiKey: process.env.TESTPULSE_API_KEY,
storageStreamId: "events",
batchSize: 100,
flushIntervalMs: 250
}
]
]
});apiKey: TestPulse API key. Defaults toTESTPULSE_API_KEY.storageStreamId: event stream id. Defaults toTESTPULSE_STORAGE_STREAM_IDorevents.runId: explicit run identifier. A process/time based id is generated by default.batchSize: number of events per HTTP batch.flushIntervalMs: background flush interval for pending events.sink: custom event sink, mainly useful for tests and advanced integrations.
Related Packages
@testpulse.run/playwright-jsonl-reporter: JSONL reporter and sink implementations.@testpulse.run/playwright-console-reporter: compact terminal reporter.@testpulse.run/playwright-core: lower-level reporter event adapter.
