4

There used to be a directory wasm_tests in the eos/tests directory which contained several c++ files that unit tested contracts. https://github.com/EOSIO/eos/tree/dawn-v3.0.0/tests/wasm_tests . This directory has since been removed.

Is there already in existence a good way to test standard currency, exchange, system, and skeleton multisig contracts? How is it best to go about testing them?

4

Try eosfactory
Here is a simple tutorial you can follow:
https://medium.com/coinmonks/your-first-eos-dapp-using-eosfactory-aa0394df95d9

0

You are probably looking for this: https://github.com/EOSIO/eos/tree/master/unittests

0

You could try https://github.com/LimeChain/eoslime There is an example how to test eosio.token and you could test any custom contract this way. There is short documentation in the readme and the example is here: https://github.com/LimeChain/eoslime/blob/master/example/eosio-token/usage-example.js

Keep in mind that you need to change the eoslime require.

0

I just wrote a tutorial on how to write unit tests for EOSIO (EOS, Telos & Worbli) smart contracts with JavaScript which you might find really helpful. You can check it here. We're using infeos - a javascript & npm framework for developing, deploying and testing EOSIO dApps

protected by TeeAttack42 Jan 25 at 9:45

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.