web icon indicating copy to clipboard operation
web copied to clipboard

Using playwright reporters when testing with playwright

Open ranile opened this issue 2 years ago • 1 comments

I'm testing with playwrightLauncher (see config below):

// web-test-runner.config.mjs
import { playwrightLauncher } from '@web/test-runner-playwright';

/** @type import('@web/test-runner').TestRunnerConfig*/
const config = {
    browsers: [
        playwrightLauncher({ product: 'chromium' }),
        playwrightLauncher({ product: 'firefox' }),
    ],
// ...
}
export default config;

I would like to report the tests with playwright html reporter. Is there an option to do so? If not, there should be one added

ranile avatar Aug 07 '23 12:08 ranile

The docs for writing your own reporter are here. You’re welcome to bring this capability into your project in that way. There are JUNIT and summary reporters in the project to use as examples.

Westbrook avatar Oct 19 '23 22:10 Westbrook