gherkin-wrapper
gherkin-wrapper copied to clipboard
test location is node_modules/gherkin-wrapper/.../playwright.js
Observed behavior
- In the playwright UI mode the tests show up under node_modules/gherkin-wrapper/lib/wrappers/playwright.js and not in the file where they were defined.
- The tests doesn't show up in the VSCode plugin at all.
- If I run
playwright:test -- fileName.ts
where fileName.ts has thewrapper.test
no tests are run.
Expected behavior
- [x] Option A (ideal): Playwright understood the location of the test as the feature file and line where the Example / Scenario was specified
- [x] Works for the playwright test runner (visible in reports an UI mode) (see microsoft/playwright/23157)
- [ ] Works for the vscode test runner
- [x] Option B (workaround): Playwright understood the location of the test as the TS file where I called
wrapper.test
.
Notes
Maybe this can be done if calling run the test.describe in the file where now we run wrapper.test(
${__dirname}/XY.feature)