Basic testing workflow with Truffle – Part 2

Julien Klepatch

In this video, we will go through the whole process of test-driven-development (TDD) for Solidity smart contracts:

  • writing the tests in Truffle
  • running the failing tests with truffle test
  • fixing the test by implementing the missing parts of the Solidity smart contract
  • running the tests again, this time it will pass!

The smart contract we will is very simple, so that we can focus on the workflow of testing a smart contract versus the business logic of the smart contract.


Leave a Reply

More great articles

ToDo List Ethereum Dapp (Step8) | Create Smart Contract Data From The Frontend

This tutorial is part of the series ToDo List Ethereum Dapp. This is the Step 8. Tutorials already published: (more…)

Read Story

Types of Solidity runtime errors

"out of gas", "revert", "invalid opcode", what are all these weird error names in Solidity? In this video I will…

Read Story

Contract Inheritance In Solidity | Episode 6 In object-orientated programming languages, we have classes and inheritance. In Solidity, we don't have classes but we have contracts.…

Read Story

Never miss a minute

Get great content to your inbox every week. No spam.
[contact-form-7 id="6" title="Footer CTA Subscribe Form"]