-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(testing): add support for playwright --last-failed #28161
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 8555e26. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 4 targets
Sent with 💌 from NxCloud. |
--last-failed allows running only the failed tests from the previous run example: playwright test --last-failed Closes nrwl#28096
a7e9609
to
a1316f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing!
There's a mismatch between what the PR describes to do and the change made. The correct option name accepted by Playwright (and mentioned in the PR title and description) is --last-failed
, but the changes are adding a failedOnly
option.
packages/playwright/src/executors/playwright/playwright.impl.ts
Outdated
Show resolved
Hide resolved
@leosvelperez 🤦 my bad... |
@leosvelperez thanks for the quick review and the suggestions - it's all fixed now! |
--last-failed allows running only the failed tests from the previous run example: playwright test --last-failed Closes nrwl#28096
0b72e97
to
968c72b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once again, thanks for the contribution!
`--last-failed` allows running only the failed tests from the previous run. Example: `playwright test --last-failed`. [Documentation](https://playwright.dev/docs/test-cli#reference) <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> Cannot provide `--last-failed` flag to playwright ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Should be able provide `--last-failed` via configuration entry `lastFailed: boolean` ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #28096 (cherry picked from commit c24292a)
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
--last-failed
allows running only the failed tests from the previous run.Example:
playwright test --last-failed
. DocumentationCurrent Behavior
Cannot provide
--last-failed
flag to playwrightExpected Behavior
Should be able provide
--last-failed
via configuration entrylastFailed: boolean
Related Issue(s)
Fixes #28096