samedi 11 mai 2019

Truffle-Test: How to get all events emitted during testcase WHILE RUNNING?

After a test with truffle it shows a message about "Events emitted during test".

Is there any way to get this information while running test cases?

In some special test cases, I need to log all events happening without sending any transactions so truffle-assert is not an option, unfortunately.

Any ideas?

Truffle's message after running:

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)

    ---------------------------

Aucun commentaire:

Enregistrer un commentaire