fbpx

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.

https://eattheblocks-pro.teachable.com/courses/smart-contract-testing/lectures/9020070

0 Comments

Leave a Reply

More great articles

Understanding Truffle variable injection magic in test files

In Truffle, when you write tests, you can use 'artifacts' and 'web3' objects, without defining these names: const MyContract =…

Read Story

Advanced storage

In this video, we will build on the previous "Simple storage" smart contract, and store list of data instead of…

Read Story

Isolate smart contract tests with Truffle clean room features

In Truffle tests, we have a mysterious contract() function: contract('my test', () => { if('it should ...', () => {…

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"]
Arrow-up