microsoft / playwright-pytest

Pytest plugin to write end-to-end browser tests with Playwright.
https://playwright.dev/python/docs/test-runners
Apache License 2.0
442 stars 68 forks source link

[Feature]: Use of pw prefix for all custom pytest options #252

Open DieTapete opened 2 weeks ago

DieTapete commented 2 weeks ago

🚀 Feature Request

The custom options added by the playwright pytest plugin are quite generic like output and device and can easily conflict with other plugins or a user's custom options since pytest does not support proper namespacing. Therefore all playwright options should be prefixed with pw. Namely: pw-output, pw-device, etc. A non-breaking alternative, would be to allow a user to configure the option names.

Example

No response

Motivation

It is clearer for the user which options belong specifically to the playwright plugin and other plugins that would otherwise have conflicting option names would now work.

mxschmitt commented 2 weeks ago

Could you give us an example with which plugin it conflicts? We have not seen a report like this. Breaking this would hurt all our users so we are careful with such changes.