Skip to main content

GenLayer Testing Suite

Project description

GenLayer Testing Suite

License: MIT Discord Twitter

About

The GenLayer Testing Suite is a powerful testing framework designed to streamline the development and validation of intelligent contracts within the GenLayer ecosystem. Built on top of pytest, this suite provides developers with a comprehensive set of tools for deploying, interacting with, and testing intelligent contracts efficiently in a simulated GenLayer environment.

Prerequisites

Before installing GenLayer Testing Suite, ensure you have the following prerequisites installed:

  • Python (>=3.8)
  • GenLayer Studio (Docker deployment)
  • pip (Python package installer)

🛠️ Installation and Usage

Installation Options

  1. Install from PyPI (recommended):
$ pip install genlayer-test
  1. Install from source:
$ git clone https://github.com/yeagerai/genlayer-testing-suite
$ cd genlayer-testing-suite
$ pip install -e .

Running Tests

  1. Run all tests:
$ gltest
  1. Run specific test file:
$ gltest tests/test_mycontract.py
  1. Run tests with specific markers:
$ gltest -m "integration"
  1. Run tests with verbose output:
$ gltest -v

For more detailed information and advanced usage, please refer to our documentation.

🚀 Key Features

  • Pytest Integration – Extends pytest to support intelligent contract testing, making it familiar and easy to adopt.

  • Account & Transaction Management – Create, fund, and track accounts and transactions within the GenLayer Simulator.

  • Contract Deployment & Interaction – Deploy contracts, call methods, and monitor events seamlessly.

  • CLI Compatibility – Run tests directly from the command line, ensuring smooth integration with the GenLayer CLI.

  • State Injection & Consensus Simulation – Modify contract states dynamically and simulate consensus scenarios for advanced testing.

  • Prompt Testing & Statistical Analysis – Evaluate and statistically test prompts for AI-driven contract execution.

  • Scalability to Security & Audit Tools – Designed to extend into security testing and smart contract auditing.

By leveraging the GenLayer Testing Suite, developers can ensure their contracts perform reliably and securely before deployment on the live network.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genlayer_test-0.1.0b1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

genlayer_test-0.1.0b1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file genlayer_test-0.1.0b1.tar.gz.

File metadata

  • Download URL: genlayer_test-0.1.0b1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for genlayer_test-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 37fc88bcc0a7559bb3af264b1708d001e52377009668cc77a9c345c491bfe260
MD5 94c5c909cc77932fb788d6f872da2129
BLAKE2b-256 616552d5afff0c0b6d934dae063500db5d82f727ee587ebdde432ef27e97e823

See more details on using hashes here.

File details

Details for the file genlayer_test-0.1.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for genlayer_test-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 185357e25a6a0e29e7fb74f628f0ac4d9139f020f6c21ff53a0c522044016712
MD5 a4816824a9768c912567ec87511643c7
BLAKE2b-256 ea42d3a70bea47181f620eea0764eec5faa7b27f1fdc012082ddbdf31b769cd6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page