-
Notifications
You must be signed in to change notification settings - Fork 0
Description
at the moment i've intentionally left out tape's t.plan. here's a space for discussion.
the rationale is that if you really need to count, do it yourself. i don't often use t.plan and when i do, i would find it strange to plan plan(numAssertions * numIterations), when if you count manually you can do it however you like.
this then allowed me to also remove t.end in favor of a cb that is the second argument to the test function, where cb(err) signals that the test runner has errored (not that the test has errored), so that the first argument was just a wrapped version of assert (where errors are stored not thrown). if we add t.plan somewhere, i'm not sure where to add it without it being funky (attached to assert, return your plan from the function, etc).