You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tape('setup',t=>{//.. test setup steps})// then test it sef cotape('test1',t=>{})tape.skip('test2',t=>{t.test.skip(...)// not supportedt.test.only(...)// not supported})tape('the end',t=>{t.end()})
Two problems i see here:
Nested test do not suport skip/only
Not sure is there a better way of test grouping, do recommend to use a big nested test?
Run only test if I whant to do this I would need to put .only on setup (maybe the end) as well wich seem a little bit inconvinient.
The text was updated successfully, but these errors were encountered:
nesting, or, separate files, are the best way to group
t.test(…, { only: true }, …) should work for you
t.test.skip and t.test.only are impossible without using ES5 accessors, which are slow, bad practice, and would make this lib incompatible with ES3 environments.
I organize my tests in folloing way:
Two problems i see here:
skip/only
only
test if I whant to do this I would need to put .only onsetup
(maybethe end
) as well wich seem a little bit inconvinient.The text was updated successfully, but these errors were encountered: