Testing the Auction Smart Contract

Learn how to write advanced tests using the Truffle Framework, and implement tests for the Auction smart contract

In this lesson, we'll dive deeper into writing unit tests with Truffle and practice our new skills by writing tests for the Auction contract. This contract is more complex and will allow us to learn how to write more advanced tests.

Initialize the contract

To create tests for the new contract, we'll add another test file called auction.js in the tests.

Get hands-on with 1200+ tech skills courses.