-
Notifications
You must be signed in to change notification settings - Fork 3.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
[Feature] Add test.todo() #10918
Comments
We call it test.fixme! |
I think they should be semantically different IMO. |
I had a definite need for this when migrating a 5 year old angular app from nightwatch.js to Cypress.io. We almost went with jest-puppeteer over Cypress at the time specifically for this feature. We needed to keep track of all of the tests which would exist if the app functionality existed separate from the tests which were broken. Today, this would drastically improve our ability to manage test stubs for a 5 year old angular app which has just completed it's move to vue2. test.fixme() will work for us, but todo() would make it clearer what the open source testing community could contribute vs what has been broken |
i really hoped this would be available in 2022. for semantics 👀 |
If you are looking for the parity with Jest, please use |
How does it has the same semantics? It clearly doesn't. Just declare that is out of scope and be done with it. But don't ignore the main reason this issue got made in the first place. |
true. i can understand if it is a very low priority and i respect that completely. but it is not the same semantics. it is like saying that skip and fixme can by used for "skipping" broken tests. |
A few reasons why .todo would be preferable as a way to use tests-as-documentation / specification:
|
Discussed in https://github.com/microsoft/playwright/discussions/10914
Originally posted by zomars December 14, 2021
This is pretty helpful for planning future tests and keep track of them.
Jest has it: https://jestjs.io/docs/api#testtodoname
The text was updated successfully, but these errors were encountered: