direct-tests

Automate in-memory direct-mode tests for GenLayer intelligent contracts with pytest fixtures.

2|1|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/proven-xyz/proven-app --skill direct-tests-proven-xyz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: direct-tests
Source: https://github.com/proven-xyz/proven-app/tree/main/.agents/skills/direct-tests
Command: npx skills add https://github.com/proven-xyz/proven-app --skill direct-tests-proven-xyz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Write, run, and refine fast direct-mode tests for GenLayer intelligent contracts using the in-memory pytest fixtures.

Core Features & Use Cases

  • Direct-mode testing with in-memory fixtures (e.g., direct_vm, direct_deploy, direct_alice) to validate state transitions, storage updates, and access control.
  • Mocking web requests and LLM responses to simulate external interactions without network dependency.
  • Clear test patterns and reusable helpers (e.g., conftest setups) to accelerate contract development and ensure deterministic results.

Quick Start

Run the direct-mode tests locally with pytest using the provided fixtures.

Frequently Asked Questions about direct-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run in-memory tests for GenLayer contracts using pytest?

In-memory tests for GenLayer contracts run locally using pytest fixtures like direct_vm, direct_deploy, and direct_alice to validate state transitions and simulate contract interactions without servers or Docker.

How do I mock web requests and LLM responses in GenLayer contract tests?

Mocking web requests and LLM responses in GenLayer tests isolates external interactions, ensuring deterministic test patterns without network dependency by utilizing provided pytest-based direct-mode fixtures.

Do I need Docker to test GenLayer intelligent contracts?

Testing GenLayer intelligent contracts does not require Docker; the direct-mode approach uses in-memory pytest fixtures to provide a fast, isolated environment for validating storage updates and access control.

What are the best pytest fixtures for testing GenLayer contract state transitions?

The best pytest fixtures for GenLayer contract state transitions are direct_vm, direct_deploy, and direct_alice, which enable isolated, deterministic direct-mode testing and reusable conftest setups.

When should I use direct-mode testing instead of other contract testing methods?

Direct-mode testing is ideal for fast, local GenLayer contract development when you need deterministic results and isolated state validation, avoiding the overhead of servers or Docker environments.