> For the complete documentation index, see [llms.txt](https://luntra.gitbook.io/luntra-infrastructure/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://luntra.gitbook.io/luntra-infrastructure/smart-contract-guide-using-foundry/deployment-to-luntra-infrastructure/testing-on-luntra.md).

# Testing on Luntra

### Fork Testing

```sh
# Test against Luntra fork
forge test --fork-url https://rpc.luntrainfrastructure.com/http
```

### Integration Test Example

```solidity
// 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);
    }
}
```
