playwright-teamcity-reporter
Version:
Playwright Teamcity Reporter
40 lines (27 loc) • 1.1 kB
Markdown
# Playwright Teamcity Reporter
[](https://github.com/artemrudenko/playwright-teamcity-reporter/actions/workflows/build-and-test.yml)
This package will report your @playwright/test results to your Teamcity CI server, so you can see the number of executed tests, test failures and the tests tab right from your Teamcity UI.
## Installation
Install the package from NPM:
```cmd
npm install --save-dev playwright-teamcity-reporter
```
## Usage
Add to default reporter:
```cmd
npx playwright test --reporter=line,playwright-teamcity-reporter
```
Use only playwright-teamcity-reporter:
```cmd
npx playwright test --reporter=playwright-teamcity-reporter
```
You can also configure using playwright.config.js. To achieve that, add 'playwright-teamcity-reporter' to the reporter section of your configuration:
```ts
const config = {
...
reporter: [
['playwright-teamcity-reporter', {'testMetadataArtifacts': 'test-results', logConfig: false}],
],
...
};
```