Used to auto-generate unit tests for smart contracts using the Forge framework.
Project description
Olympix Test Generator
Olympix Test Generator is a Python package designed to assist with the generation of unit tests for Solidity smart contracts. These unit tests are specifically designed to be ran through Foundry, a tool for writing unit tests in Solidity.
Installation
You can install Olympix Test Generator using pip:
pip install olympix-test-generator
Usage
The package includes a command-line interface for generating tests.
Before running the script, make sure to set the OLYMPIX_API_KEY environment variable in your system.
To generate a test, run:
olympix generate
The tool will guide you through the process of generating the test.
A test contract will be written in the same directory as the selected smart contract, or in a neighboring test folder if it exists. No existing files will be overwritten. The tests are also outputted to the console.
Project Structure
The project includes the following Python files:
client.py: The main script for interacting with the Olympix DevSecTools API. It includes an interactive command-line interface.
Dependencies
This project's dependencies are specified in the requirements.txt file.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file olympix-test-generator-1.2.0.tar.gz.
File metadata
- Download URL: olympix-test-generator-1.2.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91a0ed9789595933dc6376d2da1f6bf38d70ddeb9c4f40dfeab3c04d0167092d
|
|
| MD5 |
253a29253fb702317f732e9f1cd9d727
|
|
| BLAKE2b-256 |
76ab8d52dd644fb4174c066b4148af345ff91235f66d46b268c497ca55f138a5
|
File details
Details for the file olympix_test_generator-1.2.0-py3-none-any.whl.
File metadata
- Download URL: olympix_test_generator-1.2.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61ae210915b21253b690587140843a042da2eaad57bac5bdcbfac0a297a69c97
|
|
| MD5 |
81bac7042b4287b5b8ca218d8f5a5418
|
|
| BLAKE2b-256 |
c06a3768d95833571de48d62c06e6e68d05668e7ec4e07d84341146bd47c99b3
|