perun-network / erdstall-ts-sdk

TypeScript client SDK to interact with Erdstall.
Apache License 2.0
5 stars 2 forks source link

Extend `PRNG` to log name of the attached testsuite #112

Closed ndzik closed 2 years ago

ndzik commented 2 years ago

Currently our PRNG allows us to replay our tests because it logs the seed, but we are now at a point, where filtering the seed out of the testlog is rather cumbersome.

We should extend the test.newPrng() to log the testsuite it is part of. mocha gives some abilities to inspect the running test and maybe there is even a fail/error callback we could use to add our testseed?

Whatever route we take, this has to be changed.