类:TestsStream
\Class: TestsStream
版本历史
| 版本 | 变更 |
|---|---|
| v20.0.0, v19.9.0, v18.17.0 | 当测试是一个套件时,向 test:pass 和 test:fail 事件添加了类型。 |
| v18.9.0, v16.19.0 | 新增于: v18.9.0, v16.19.0 |
-
延长 <Readable>
\Extends <Readable>
成功调用 run() 方法将返回一个新的 <TestsStream> 对象,流式传输代表测试执行的一系列事件。TestsStream 将按照测试定义的顺序触发事件
\A successful call to run() method will return a new <TestsStream>
object, streaming a series of events representing the execution of the tests.
TestsStream will emit events, in the order of the tests definition
某些事件保证按照测试定义的顺序触发,而其他事件则按照测试执行的顺序触发。
\Some of the events are guaranteed to be emitted in the same order as the tests are defined, while others are emitted in the order that the tests execute.