flaky-dashboard-cypress-plugin
v0.1.0
Published
Cypress plugin that posts run results to the Test Reporting & Flaky Test Dashboard ingestion API
Readme
flaky-dashboard-cypress-plugin
Cypress plugin that posts run results to the Test Reporting & Flaky Test Dashboard, via the same ingestion API the Playwright reporter uses.
Install
npm i -D flaky-dashboard-cypress-pluginConfigure
In cypress.config.ts:
import { defineConfig } from "cypress";
import registerFlakyDashboard from "flaky-dashboard-cypress-plugin";
export default defineConfig({
e2e: {
setupNodeEvents(on) {
registerFlakyDashboard(on, {
apiUrl: "https://your-dashboard.example.com/api/ingest",
apiKey: process.env.FLAKY_DASHBOARD_API_KEY,
});
},
},
});Or omit the options object and set FLAKY_DASHBOARD_API_URL and
FLAKY_DASHBOARD_API_KEY env vars instead (recommended for CI). Branch and
commit SHA are auto-detected the same way as the Playwright reporter — common
CI env vars first, git rev-parse locally, overridable via options.
