Skip to content

Commit

Permalink
playwrightテストが落ちたらgithubでアノテーションされるように
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Sep 25, 2023
1 parent a9144ea commit 2658a67
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,9 @@ const config: PlaywrightTestConfig = {
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
reporter: [
[
"html",
{
open: process.env.CI ? "never" : "on-failure",
},
],
],
reporter: process.env.CI
? [["html", { open: "never" }], ["github"]]
: [["html", { open: "on-failure" }]],
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
use: {
Expand Down

0 comments on commit 2658a67

Please sign in to comment.