For some time now, we’ve had a test/helpers
directory in OpenZeppelin, containing multiple JavaScript utilities we developed while building it, including revert assertions, event checking, time manipulation, etc. - due to OpenZeppelin’s nature, our testing needs were sometimes out of the norm, and we had to resort to custom code. These helpers turned out to be very useful not only for us but for the larger community, and were used by many of our users to test their own code. Not much thought was ever given to their API or stability though, unpredictably causing issues to these developers, nor were the test helpers ever tested themselves (!).
openzeppelin-test-helpers
is a small package that bundles a curated and improved set of these utilities. With this package, we aim to make the smart contract development experience smoother for everyone, using the same code OpenZeppelin uses on its large test suite.
We’ve just released version 0.3.0 on npm, and want to gather feedback on what should be improved, or what features we’re missing, to get ready for a 1.0.0 release. Feel free to either open issues on the repo with concrete ideas, or discuss more involved topics here!
Additionally, we know our documentation is somewhat lacking at the moment, and would greatly appreciate any help on this front
Thanks!