Documentation

Testing

Run and write tests for Cylend smart contracts

Run Tests

Run all tests:

npx hardhat test

Run with coverage:

npx hardhat coverage

Run specific test:

npx hardhat test test/LendingCore.test.ts

Test Categories

Unit Tests

Individual function tests for each contract

Integration Tests

Cross-chain flow simulations

Fuzz Tests

Random input testing for edge cases

Gas Tests

Gas consumption optimization checks

Related