> 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/development-workflow.md).

# Development Workflow

### 1. Build

```sh
forge build
```

### 2. Test

```sh
# Run all tests
forge test

# Run tests with verbosity
forge test -vvv

# Run specific test
forge test --match-test testIncrement
```

### 3. Format Code

```shell
forge fmt
```

### 4. Gas Snapshots

```sh
forge snapshot
```

### 5. Local Development with Anvil

```sh
# Start local node
anvil

# Fork Luntra network locally
anvil --fork-url https://luntra.rpc.caldera.xyz/http
```
