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.0b3.tar.gz (7.1 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.0b3-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: genlayer_test-0.1.0b3.tar.gz
  • Upload date:
  • Size: 7.1 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.0b3.tar.gz
Algorithm Hash digest
SHA256 903adac241983658f3649c8701f014a2fdf1ed298ba630f58c9bba70e359fd3a
MD5 38f004868a891ba7f7f0144f9a68c0b9
BLAKE2b-256 54756ada46c393b6b4860d03bbf147a3684944967f32a1c06529f63eb81c34e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for genlayer_test-0.1.0b3-py3-none-any.whl
Algorithm Hash digest
SHA256 6c4268e7c6971b9296b2af6bad627b45cd6cafd762f611586e42e97179843d88
MD5 65fad64187ff30e46d0ed9cfd87a0da5
BLAKE2b-256 eb7ef84168d29a7ed0ebf88e172ebc24497a7528c6021fb468170273439090da

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