@testpulse.run/reporter
v0.1.6
Published
Playwright reporter for streaming TestPulse runs and optional live browser capture
Maintainers
Readme
@testpulse.run/reporter
Playwright reporter for streaming TestPulse runs and live browser capture.
Install
npm install @playwright/test @testpulse.run/reporterUsage
import { defineConfig } from "@playwright/test";
export default defineConfig({
reporter: [
["list"],
["@testpulse.run/reporter", {
projectId: "demo-project",
apiKey: "<project-api-key>"
}]
]
});The reporter defaults to https://app.testpulse.run.
Auto Live Capture
import { expect, test } from "@testpulse.run/reporter/fixtures";
test("streams automatically when page is used", async ({ page }) => {
await page.goto("https://playwright.dev");
await expect(page).toHaveTitle(/Playwright/i);
});Live streaming is always on when the reporter is configured and the fixture automatically starts and stops live capture for tests that use the page fixture. The package bundles ffmpeg automatically. To override the encoder path, pass ffmpegPath in the fixture options.
