TestSuite4 is a framework designed to simplify development and testing of TON Contracts
Project description
TestSuite4 0.4.1
TestSuite4 is a framework designed to simplify development and testing of TON Contracts. It contains lightweight blockchain emulator making it easy to develop contracts in a TDD-friendly style.
Features:
- Speed - perform dozens of tests in just seconds.
- Complex test scenarios - using Python as a scripting language allows you to create testing scenarios of varying complexity.
- Deep Integration - access all internal messages, measure gas and control time.
- Easy installation - use
pip install tonos-ts4to install TestSuite4 on your local Windows, Linux or macOS. You can also easily compile it from source if needed.
See tutorials for self-documented examples of framework usage.
List of tutorials
- tutorial01_getters.py - Working with getters of various types.
- tutorial02_methods.py - Working with external methods.
- tutorial03_constructors.py - Working with constructors.
- tutorial04_messages.py - Dispatching messages between contracts and catching events.
- tutorial05_deploy.py - Deploying a contract from a contract and working with it through wrappers.
- tutorial06_signatures.py - Working with singed external calls and handling exceptions raised by a contract.
- tutorial07_time.py - Fast-forwarding time however you need to.
- tutorial08_balance.py - Fetching contract balance.
- tutorial09_send_money.py - Send money and watch it travel within the virtual blockchain.
- tutorial10_encode_call.py - Encode the payload for use in the
transfer()call. - tutorial11_set_code.py - Using the contract code update functionality.
Quick Start
Warning You might need to replace python and pip with python3 and pip3 if you are running Linux or macOS.
If you have Python 3.6-3.10, pip and git installed on your system, you can proceed with the following steps.
- Install
tonos-ts4package:
pip install tonos-ts4
- Download tutorials from GitHub:
git clone git@github.com:tonlabs/TestSuite4.git
- ... and run the tutorials:
cd TestSuite4/tutorials
python tutorial01_getters.py
For more information, visit TestSuite4's documentation.
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 Distributions
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 tonos_ts4-0.4.1-py3-none-any.whl.
File metadata
- Download URL: tonos_ts4-0.4.1-py3-none-any.whl
- Upload date:
- Size: 23.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ea97e64afb0bc2e9f00a9e07ce0e05e525f424dbe48e53fdb34a4ffe530486f
|
|
| MD5 |
aea67f5411dbf26478734c6625ab22de
|
|
| BLAKE2b-256 |
74cb4eed535dcc59990ad1430b6a6607eecc2fd634ba7410d4792fcde5757413
|