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

Crud – Part III

In the last part of this tutorial we finished all the functionalities of our smart contract. Unfortunately, we have a…

Read Story

Simple storage – Part I

In this video we are going to create a smart contract able to store a variable. Very easy to follow!…

Read Story

Instantiate An Inherited Solidity Contract | Episode 9

https://www.youtube.com/watch?v=YBSD1z96Tic

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