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 Answers 4

4

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

1
0

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

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

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://docs.eoslime.limechain.tech/examples

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

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