fbpx

Isolate smart contract tests with Truffle clean room features

Julien Klepatch

In Truffle tests, we have a mysterious contract() function:

contract('my test', () => {
  if('it should ...', () => {
  });
});

It’s Truffle replacement of Mocha describe() function, but with a twist: it defines a “clean room” and it’s used to isolate tests. Very few Truffle users, but this is important to understand this:

0 Comments

Leave a Reply

More great articles

Syntax vs runtime vs logic errors in solidity

A lot of people are confused about debugging in general and don't know the difference between a syntax error and…

Read Story

ToDo List Ethereum Dapp (Step2) | Writing the smart contract – part II

This tutorial is part of the series ToDo List Ethereum Dapp. It is the Step 2. Tutorials already published: Intro…

Read Story

How To Use Ganache GUI With Truffle? | Episode 14

https://www.youtube.com/watch?v=aRJA1r1Gwu0&t=1s Ganache CLI is an Ethereum client used for developing smart contracts and dapps. It is a command-line tool but…

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