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
I get the following output, which shows an odd ordering. I don't know whether my script was too contrived, but I thought I'd pass it on.
before outer
before inner
test inner
after outer
after inner
before outer
test outer
after outer
------------------------------------------------------------------------
Outer:
Inner:
Inner test [U]
Outer test [U]
------------------------------------------------------------------------
I had expected each of the set up and teardown functions to be called only once, and was surprised to see the outer after being called immediately after the inner test. Is that the expected order of execution, or is something going wrong?
I'm using the latest master branch from git hub.
Thanks,
Tom
The text was updated successfully, but these errors were encountered:
Hi,
Thanks for the work you've done on Telescope. I'm pretty new to testing frameworks, but I've enjoyed using it.
I just wanted to get in contact regarding the order in which the before and after functions are executed when nested contexts are involved.
I wrote a little script which just prints out the order things get called in and I got some weird results. When I run:
I get the following output, which shows an odd ordering. I don't know whether my script was too contrived, but I thought I'd pass it on.
I had expected each of the set up and teardown functions to be called only once, and was surprised to see the outer after being called immediately after the inner test. Is that the expected order of execution, or is something going wrong?
I'm using the latest master branch from git hub.
Thanks,
Tom
The text was updated successfully, but these errors were encountered: