Testing on Luntra
Fork Testing
# Test against Luntra fork
forge test --fork-url https://rpc.luntrainfrastructure.com/http
Integration Test Example
// test/Integration.t.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "forge-std/Test.sol";
import "../src/Counter.sol";
contract IntegrationTest is Test {
Counter public counter;
function setUp() public {
// Fork Luntra network
vm.createFork("https://rpc.luntrainfrastructure.com/http");
counter = new Counter();
}
function testCounterOnLuntra() public {
counter.increment();
assertEq(counter.number(), 1);
}
}
Last updated