Agoric / agoric-sdk

monorepo for the Agoric Javascript smart contract platform
Apache License 2.0
326 stars 206 forks source link

Reduce boilerplate in test code #4796

Open turadg opened 2 years ago

turadg commented 2 years ago

What is the Problem Being Solved?

Tests duplicate a lot of setup. (E.g. creating a brand object) This creates extra work to write and even more to refactor.

Description of the Design

Extract repeated patterns into test util modules. Make some Ava macros for common assertions.

Security Considerations

--

Test Plan

--

Tartuffo commented 2 years ago

@dtribble Please add your thoughts.

dtribble commented 2 years ago

Example: