松露测试后,会显示一条有关“测试期间发出的事件”的消息。
在运行测试用例时,有什么方法可以获取此信息吗?
在某些特殊的测试用例中,我需要记录所有发生的事件而不发送任何事务,因此不幸的是,松露断言不是一个选择。
有什么想法吗?
运行后松露的消息:
Events emitted during test:
---------------------------
ActivityLog(process: 0x95e017a712323F302c843cc8050D24de82B0404f,
subprocess: 0x019e1Bc2771ca226AC5793CA2828858F8e9a3d65,
processInstanceId: 0xa8c8831006c6eb1f7fb72bb3b1fba032ac086b7eff6e7abba227883f240bf559, activity: 0x53544152545f4350000000000000000000000000000000000000000000000000, timestamp: 1557618124, user: 0x68839309203065B053e46Ba2938212f41E9917AC)
ActivityLog(process: 0x95e017a712323F302c843cc8050D24de82B0404f, subprocess: 0x395C1b970477AD1a286ddB25faB20608A500F012, processInstanceId: 0xa8c8831006c6eb1f7fb72bb3b1fba032ac086b7eff6e7abba227883f240bf559, activity: 0x53544152545f5242000000000000000000000000000000000000000000000000, timestamp: 1557618126, user: 0x1c4D4B34771dAc49E674C2788Bc4f355ebE8531d)
---------------------------