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.0b2.tar.gz (6.6 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.0b2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: genlayer_test-0.1.0b2.tar.gz
  • Upload date:
  • Size: 6.6 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.0b2.tar.gz
Algorithm Hash digest
SHA256 f7b3da60464be0fbcbdf47722cd832caf650cbe393f18d73814423a73200d6a6
MD5 cf72bfe68d9d23fd8d680479115e72b8
BLAKE2b-256 78fc3766fe2b34d256ea5a87eecb5494bfb0d16451a8dfbef1ab56fd7c5e7ff4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for genlayer_test-0.1.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 9f83f82e6fe0ed851240762525e3462e45a7e4edc67c60049401aa13243b0899
MD5 ff5680ddfe2c1802bb22da6b6f045a8f
BLAKE2b-256 d91b0b8bcbf2ab7a64a945ba56bed5600464880a44e4c0b654b08feb241dbf36

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