类:TestsStream
🌐 Class: TestsStream
版本历史
| 版本 | 变更 |
|---|---|
| v20.0.0, v19.9.0, v18.17.0 | added type to test:pass and test:fail events for when the test is a suite. |
| v18.9.0, v16.19.0 | 新增于: v18.9.0, v16.19.0 |
- 扩展 <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.