-
-
Notifications
You must be signed in to change notification settings - Fork 63
Closed
Description
Cucumber has several built-in reporters (also called formatters). It would be useful to output results of Playwright test runner to these reporters (especially html-reporter or messages
reporter).
There are different approaches:
- Write custom Playwright reporter that will create Cucumber report
- Use Playwright json report and convert it into Cucumber messages, and then convert to html
Ideally, final usage should allow to use any Cucumber report:
import { defineConfig, devices } from '@playwright/test';
import { cucumberReporter } from 'playwright-bdd';
export default defineConfig({
// ...
reporter: cucumberReporter('json:cucumber-report.json'),
});
Known problem - reporting Scenario Outline.
In Cucumber it is possible to have the same test title with different data. In Playwright each test must have unique title (it was also discussed in #3 (comment)). Example of Cucumber html report for Scenario Outline:
I would appreciate more ideas on that from your reporting usage.
PavanMudigondaTR, cassus, gnuechtel, vcardins, magicofit and 3 more