-
-
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
fix: allow all combinations of describe
, it
and test
to skip
modifier
#746
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #746 +/- ##
=======================================
Coverage 99.06% 99.07%
=======================================
Files 36 36
Lines 1720 1728 +8
Branches 10 10
=======================================
+ Hits 1704 1712 +8
Misses 8 8
Partials 8 8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
describe
, it
and test
to skip
modifierdescribe
, it
and test
to skip
modifier
Nice! Isn't it that |
Thanks, @mrazauskas.
I don't know if this will make sense in English, but a "to-do" without a "do" seems to be just an alternative name for the My idea/approach for each one is: .skip
.todo
|
That's right. It is just a skipped test, but semantically it is not skipped, but simply not yet (properly) implemented. |
Also if Poku allows tests without messages, I think the planning helper must allow those too. Why not? |
I think I get your point now. My problem with planning without a message is that it would cease to be a plan, for example:
test.todo("Understand why the loop doesn't finish", () => {
let i = 0;
while (i >= 0) i++;
);
test.skip(() => {
let i = 0;
while (i >= 0) i++;
); Both will do exactly the same thing in practice (skip the tests), but one shows that there is planning behind the "improperly implemented" test, the other just ignores it. The real difference is in the final logs. That said, I'd have no problem making |
Looking at your example I think: why // TODO Why this loop does not work?
test.skip(() => {
let i = 0;
while (i >= 0) i++;
); What if someone is building up a test without a message (since that is allowed): test.todo(() => {
someCall();
// assert this and that
// TODO does not work yet, have to figure it out
someOtherCall();
// assert this and that
); Here |
Fixes: b756605#r146279295