mirror of
https://github.com/ipnet-mesh/meshcore-hub.git
synced 2026-10-31 04:02:03 +01:00
Add a summary job that runs after all CI jobs (even on failure), parses the pytest/vitest/Playwright JUnit reports plus coverage.xml, and renders a consolidated Markdown summary to $GITHUB_STEP_SUMMARY: job results, test counts, durations, backend coverage, failure details, and the artifact inventory. Enable a Playwright JUnit reporter and include it in the playwright-report artifact.
32 lines
808 B
TypeScript
32 lines
808 B
TypeScript
import { defineConfig } from "@playwright/test";
|
|
|
|
const baseURL = process.env.E2E_BASE_URL ?? "http://localhost:18080";
|
|
|
|
export default defineConfig({
|
|
testDir: "./tests",
|
|
outputDir: "./test-results",
|
|
globalSetup: "./global-setup.ts",
|
|
// Single throwaway backend: run serially so mutating specs (routes, profile)
|
|
// cannot race each other.
|
|
fullyParallel: false,
|
|
workers: 1,
|
|
retries: 0,
|
|
reporter: [
|
|
["list"],
|
|
["html", { open: "never", outputFolder: "./playwright-report" }],
|
|
["junit", { outputFile: "./junit.xml" }],
|
|
],
|
|
use: {
|
|
baseURL,
|
|
headless: true,
|
|
viewport: { width: 1280, height: 800 },
|
|
actionTimeout: 15_000,
|
|
navigationTimeout: 30_000,
|
|
trace: "retain-on-failure",
|
|
screenshot: "only-on-failure",
|
|
},
|
|
expect: {
|
|
timeout: 15_000,
|
|
},
|
|
});
|