vitalets / playwright-bdd

BDD testing with Playwright runner
https://vitalets.github.io/playwright-bdd/
MIT License
318 stars 40 forks source link

Question: Is there any way to get code coverage using playwright BDD #203

Closed magarwal19 closed 3 months ago

magarwal19 commented 3 months ago

I was looking to get the code coverage report using playwright BDD

i found one package which is for mocha version of playwright https://www.npmjs.com/package/playwright-test-coverage

want to check if we have something similar for playwright BDD or someone has implemented it yet.

pplancq commented 3 months ago

@magarwal19 yes look this https://github.com/cenfun/playwright-bdd-coverage

vitalets commented 3 months ago

Please also have a look on previous discussion in #145. In general, all coverage methods for Playwright should work for playwright-bdd as well. There are some other solutions mentioned in the Playwright issue for out-of-box coverage support: https://github.com/microsoft/playwright/issues/9208