You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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 withboot
tests - a combination ofswingset-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. TheOfferSpec
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
The text was updated successfully, but these errors were encountered: