I'm looking for some guide that drive me into solidity + truffle unit test (best practice, etc...). The only doc that I have found is the official doc.

  • Not exactly "best practices" but this cheat sheet works for me. chaijs.com/api/assert Truffle has not invented it, per se, so consider searching instead for Mocha. The new solidity testing is not yet documented beyond read Assert.sol. – Rob Hitchens Mar 22 '17 at 18:39
  • You might be able to apply some of the same practices I used when writing a proof-of-concept Lottery app. I wrote about some of the problems I ran into when writing unit tests with embark in a Medium post. Not directly useful since you're using a different framework, but perhaps useful information to have on hand. – DeviateFish Apr 5 '17 at 8:22
  • Anyone have an update on this? – thefett Jul 18 '17 at 1:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.