Originally added in #344, but has some shortcomings. Should use "runtime" instead of "duration", to make it consistent with the property passed to the done callback.
Should also be provided for modules, not just tests.
See also de2353a#commitcomment-2414467
Very much agreed! 👍
It seems like the duration test is subject to a race condition. setTimeout isn't reliable. We need to give it more slack/tolerance.
Logging: Add runtime property to testDone, deprecate duration
Will remove duration in 2.0.0, runtime does the same thing and is consistent
with the runtime property on the done callback.
Added runtime, deprecating the duration property on testDone. Created #499 to add the runtime property for moduleDone and #500 to remove the duration property in 2.0.0.
TestDone: Rename testDone's duration property to runtime