August 2018
Intermediate to advanced
404 pages
11h 19m
English
contract('TokenContract', function() { // Write tests});
Truffle uses the clean room feature while running tests. This feature redeploys the contract before executing the contract() method in tests. This ensures that you have a fresh set of contracts to test against. You can still use describe() to run tests without the clean room feature.
contract('TokenContract', ...