ReasonJun

Hardhat : ethereum-waffle 본문

Blockchain/HardHat

Hardhat : ethereum-waffle

ReasonJun 2023. 10. 21. 23:15
728x90

Ethereum-Waffle is a testing framework for Ethereum smart contracts. It is designed to be easy to use and to provide a comprehensive set of features for testing smart contracts.

 

Waffle provides the following features:

  • A simple and intuitive API for writing tests
  • Support for all of the Solidity features
  • A built-in mocking framework
  • A built-in snapshotting framework
  • A built-in coverage reporting framework

Waffle is a popular choice for testing Ethereum smart contracts. It is used by many projects, including Uniswap, Aave, and Yearn Finance.

 

Waffle is a great choice for testing Ethereum smart contracts because it is easy to use and provides a comprehensive set of features. It is also a well-maintained project with a large community of users.

 

Here are some of the benefits of using Waffle:

  • Easy to use: Waffle has a simple and intuitive API that makes it easy to write tests.
  • Comprehensive: Waffle provides support for all of the Solidity features, so you can be sure that your tests are covering all of the code in your smart contracts.
  • Built-in mocking: Waffle has a built-in mocking framework that makes it easy to mock external dependencies. This can be helpful for testing code that interacts with other contracts or with the Ethereum network.
  • Built-in snapshotting: Waffle has a built-in snapshotting framework that makes it easy to revert the state of the Ethereum blockchain to a previous point in time. This can be helpful for testing code that modifies the state of the blockchain.
  • Built-in coverage reporting: Waffle has a built-in coverage reporting framework that makes it easy to see which parts of your code are being covered by your tests.

 

https://ethereum-waffle.readthedocs.io/en/latest/

 

Waffle Documentation — waffle documentation

© Copyright 2020 Ethworks sp z o.o. Revision 0915e727.

ethereum-waffle.readthedocs.io

 

728x90
Comments