Add support to generate E2E testing projects for a qwik-nx generated qwik application. Following Qwik's default e2e testing approach, qwik-nx deafult's E2E test runner will also be playwright while providing the option to opt for cypress.
Generate a new qwik application with a playwright e2e testing project:
nx g qwik-nx:app myapp
# or...
nx g qwik-nx:app myapp --e2eTestRunner playwright
Generate a new qwik application with a cypress e2e testing project:
nx g qwik-nx:app myapp --e2eTestRunner cypress
Generate a new qwik application without an e2e testing project:
nx g qwik-nx:app myapp --e2eTestRunner none
Screenshots/Demo
Generated playwright and cypress projects:
Playwright tests result:
➜ npx nx e2e qwik-pw-e2e
> nx run qwik-pw-e2e:e2e
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
Running 3 tests using 3 workers
3 passed (5s)
To open last HTML report run:
npx playwright show-report dist/apps/qwik-pw-e2e/playwright-report
Playwright tests ran for qwik-pw-e2e project
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> NX Successfully ran target e2e for project qwik-pw-e2e (6s)
Fix #9
What is it?
Description
Add support to generate E2E testing projects for a qwik-nx generated qwik application. Following Qwik's default e2e testing approach, qwik-nx deafult's E2E test runner will also be playwright while providing the option to opt for cypress.
Added new
application
generator schema property:name:
e2eTestRunner
type: enum values: playwright, cypress, none default value: playwrightPlaywright is supported via @nxkit/playwright Cypress is supported via @nrwl/cypress
Use cases and why
Screenshots/Demo
Generated playwright and cypress projects:
Playwright tests result:
Cypress tests result:
Checklist: