playwright-confluence-reporter
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Playwright Confluence Reporter

A Playwright reporter to post test results on Confluence.

Example

Installation

npm install playwright-confluence-reporter -D

Usage example

Modify your playwright.config.ts file to include the following:

reporter: [
    [
      "./node_modules/playwright-confluence-reporter",
      {
        confluenceUrl: "https://{your-confluence}.atlassian.net/wiki",
        username: "{Your e-mail address}",
        apiKey: "{Atlassian API key}",
        spaceId: "{The Space ID for the page}",
        parentPageId: "{Optional - The parent page ID}",
        pageTitle: "E2E test results",
        generatePage: true,
        meta: [
          {
            key: "Scope",
            value: "Web, Mobile"
          }
        ]
      },
    ],
    ... // Other reporters
  ],

Options

Option Type Required Default Description
confluenceUrl string yes Your Confluence URL, probably ending with .atlassian.net/wiki
username string yes Your Confluence username / e-mail
apiKey string yes API key obtained from Atlassian
spaceId string yes The ID of the Space where the page will be created
parentPageId string no The parent page ID
pageTitle string no date Custom page title for the test results
generatePage boolean no true Set to false if you don't want to create a page
meta Array[{ key, value }] no Custom information send with the test results

Package Sidebar

Install

npm i playwright-confluence-reporter

Weekly Downloads

17

Version

0.2.0

License

MIT

Unpacked Size

29.4 kB

Total Files

7

Last publish

Collaborators

  • michelvermeer