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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://luntra.gitbook.io/luntra-infrastructure/smart-contract-guide-using-foundry/deployment-to-luntra-infrastructure/testing-on-luntra.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
