testomatio / reporter

Testomatio Reporter
126 stars 22 forks source link

JS+Playwright. Creates an empty CSV-report #337

Closed metroprog closed 7 months ago

metroprog commented 7 months ago

If I use only testomat-reporter in JS+Playwright project without integration with testomat.io, I get:

Reporter creates an empty file 'export/report.csv', at the same time CSV-results is visible in console

To Reproduce

// playwright.config.ts
...
reporter: [
  ['list'],
  [
    @testomatio/reporter/lib/adapter/playwright.js',
  ],
],
TESTOMATIO_CSV_FILENAME="report.csv" npx playwright test

Expected behavior All the content are present in csv-report, as it is in JS+Jest

Screenshots изображение

Desktop:

Additional context HTML-report is created with success.

mykhailiukVitalii commented 7 months ago

I have added fix + style adjustments. You can test it on the BETA = 1.4.0-beta-csv-enable version If all work as expected I'll merge my PR. @metroprog @TetianaKhomenko

metroprog commented 7 months ago

I have tested on the same project, it works as expected, thanks

mykhailiukVitalii commented 7 months ago

Thnx for help. I merged fix to the master branch (https://github.com/testomatio/reporter/pull/339). Will work in the next stable version @TetianaKhomenko JFYI