- 
                Notifications
    
You must be signed in to change notification settings  - Fork 42
 
Description
What is the Problem Being Solved?
In dapp-offer-up, we have tests for bundling a contract and building a proposal (test-bundle-source.js) and (test-build-proposal.js). It doesn't seem we have a test that executes the proposal. Instead, the proposal is tested via a CoreEval and governance on a3p. This leads to a slow development iteration cycle.
Similarly, I can't find anything on docs.agoric.com that indicates how this could be tested.
Description of the Design
dapp-offer-up
In agoric-sdk, one way to test this sort of thing is with boot tests - a combination of swingset-vat/tools/run-utils.js and a walletFactory driver. This allows the developer to test their proposal and send offers from an offchain wallet client. The OfferSpec artifacts from these sort of tests are really helpful when it comes time to build a UI.
I think this sort of testing should be made available in all dapp templates.
documentation
- Update https://docs.agoric.com/guides/coreeval/ with instructions for testing a core proposal that doesn't involve firing up a3p (at least, until lower fidelity tests are successful).