-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Allow to plan tests with todo flag #563
Comments
Thanks, @mateusjbarbosa 🤝 Can you show a visual reference of what the terminal output would look like? For example, the
|
What do you think about this approach? import { describe, it, todo } from 'poku'
describe('Using todo', () => {
todo('ensure that is possible sum two numbers');
it('real test', () => true)
})
todo('ensure that is possible sum two numbers') |
Of course, @wellwelwel ! I think it could be something like this: Directory: <dir>
<file>.test.ts
✔︎ passed test description
✘ failed test description
❍ planned test description (yellow or orange)
✔ 1/3 <cmd> › <time>
Start at › <start>
Duration › <duration>
Test Files › <files count>
PASS › 1 PLANNED › 1 (same color) FAIL › 1 Of course we can think of a better icon for the planned test, it was just an example. |
It's perfect! |
To be honest, I just wanted to open an issue asking for
Motivation is very simple. If tests are well organised, while debugging / developing certain behaviour user might want to skip or focus the whole file, the whole |
In theory, even assertions aren't necessary, it's enough for the process to end in success.
|
Hey @mateusjbarbosa, it was solved in #633 and will be released in the next version 🙋🏻♂️ Similar to the For more details, please see https://poku.io/docs/documentation/helpers/todo.
|
Once again, thank you for your attention and congratulations on the work! 🚀 |
Thanks for your support, @mateusjbarbosa 💙
|
Hi, everyone!
First, congratulations on the initiative! I’m using Poku in a new project and I’m loving it.
One thing I used in Jest and believe I can add here is also the possibility of planning tests before developing them, using the
todo
flag or method, as the example below.If I may, I can try to develop and open a PR. I would love to be part of the project!
The text was updated successfully, but these errors were encountered: