Skip to content

Test-Anything Protocol (TAP) reporter plugin for Playwright

Notifications You must be signed in to change notification settings

abernh/tap-playwright

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test-Anything Protocol (TAP) Reporter for Playwright

Getting Started

First, install the module.

$ npm install --save-dev @preactionme/tap-playwright

Then, configure Playwright to use the module as its reporter by editing the playwright.config.ts file:

// playwright.config.ts
import { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
  reporter: '@preactionme/tap-playwright',
};
export default config;

Then, run your tests!

Executing Tests / Running Under prove

To run under the prove test harness, add the following line as the very first line of the file:

#!/usr/bin/env -S npx playwright test

Tests Not Running?

Playwright by default only runs tests in files matching .*(test|spec)\.(js|ts|mjs). Either rename your test, or add a testMatch config to your config file.

Environment Variables

TEST_VERBOSE

If this variable is set, all output from the test written to STDOUT will be shown. By default, only output written to STDERR is displayed.

About

Test-Anything Protocol (TAP) reporter plugin for Playwright

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%