Skip to content

investengine/playwright-teamcity-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

playwright-teamcity-reporter

About

Custom reporter to integrate Playwright test runner with TeamCity CI.

Installation

npm i -D @investengine/playwright-teamcity-reporter

Usage

Create a reporter.js file which should import createReporter function, which is used to create your custom reporter with options provided.

// reporter.js

import { createReporter } from '@investengine/playwright-teamcity-reporter'

const reporter = createReporter({
  // provide options here if necessary

  artifactsFolder: 'e2e/artifacts/'
})

export default reporter

Provide path to your reporter file in playwright.config.js:

// playwright.config.js

const config = {
  ...
  reporter: 'path/to/reporter.js'
};

See Using Reporters in CI Playwright docs and Custom Reporters Playwright docs for more info.

List of options

  • artifactsFolder [optional] - path to the artifacts folder. Should duplicate outputDir parameter in your playwright.config.js. Used to provide image/video metadata of failed tests to TeamCity.

Feature requests

Feel free to provide feature requests via github issues. This reporter is just a very basic version which can be upgraded for different use-cases.

About

Playwright test runner reporter for TeamCity CI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published