# Run GenLayer Integration Tests

GenLayer contract teams need tests that match real consensus behavior. This skill shows gltest patterns, environment choices, and safety checks for reliable integration testing.

## Install

```bash
npx skillstore add internet-court/integration-tests
```

## Metadata

- Status: approved
- Slug: internet-court-integration-tests
- Skillstore revision: r1
- Version status: missing
- Tree hash: 5d80a90ad41c0c2b443bd040576adbad19450e35107b8d453827a6fca31625c8
- Author: internet-court
- GitHub username: internet-court
- License: MIT
- Repository: https://github.com/internet-court/internet-court-skill/tree/main/vendored/genlayer/integration-tests
- Ref: 3f6e026a3363e0954ede7bef0cfe88d4475de137
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, env\_access
- Quality score: 77
- Quality tier: bronze
- Public page: https://skillstore.pages.dev/skills/internet-court-integration-tests
- Manifest: https://skillstore.pages.dev/api/skills/internet-court-integration-tests/manifest

## Capabilities

- Provides gltest commands for localnet, StudioNet, and Testnet Bradbury.
- Shows deploy, transact, receipt assertion, and read-call patterns.
- Explains transaction lifecycle states and execution success checks.
- Documents configuration for localnet, StudioNet, and private-key testnet accounts.
- Compares GLSim, local Studio, hosted Studio, and testnet environments.
- Covers test markers, cache cleanup, serialization, and rate-limit handling.

## Use Cases

- Validate Contract Consensus: Check that leader and validators agree before deployment.
- Build Release Smoke Tests: Create integration checks that deploy, transact, and verify state.
- Choose Test Environments: Select GLSim, local Studio, hosted Studio, or testnet for each test goal.

## Prompt Templates

### Create a Basic Test

```
Add a basic GenLayer integration test with deploy, transact, receipt assertion, and read checks.
```

### Pick the Right Environment

```
Recommend a GenLayer test environment for this suite and explain the setup, speed, and validation tradeoffs.
```

### Debug a Failing Run

```
Diagnose this failed gltest run and suggest fixes for receipts, cache state, serialization, or rate limits.
```

### Prepare for Testnet

```
Review this suite for testnet readiness, including private-key handling, funded accounts, rate limits, and pending transactions.
```

## Limitations

- Requires a working GenLayer toolchain and target environment.
- Testnet usage may require funded accounts and private keys.
- Hosted Studio tests are subject to rate limits and pending queue caps.
- Real web and LLM calls are not mocked in integration tests.

## Best Practices

- Assert transaction execution success before reading state or checking contract results.
- Use direct mode for most logic tests and integration tests for final validation.
- Run heavy batches against GLSim or local Studio before hosted Studio or testnet.

## Anti Patterns

- Treating accepted or finalized status as proof of successful execution.
- Submitting many transactions in parallel from the same sender.
- Using funded private keys without explicit user approval and secret handling.

## Security Audit

- Audited at: 2026-07-21T03:20:23.73\+00:00
- Summary: All 25 external-command findings are false positives caused by Markdown fences and inline code formatting in SKILL.md. The two private-key findings document environment-variable configuration for testnet accounts and show no secret access or exfiltration. No prompt injection, malicious intent, or additional semantic security issue was found.

## Stats

- Views: 0
- Downloads: 4
- Favorites: 1
- Popularity score: 0
