Skip to content

testing a core eval proposal #1190

@0xpatrickdev

Description

@0xpatrickdev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions