A complete Python virtual machine for executing smart contracts.
Project description
Running Tests
To run the tests for this project, you need to use the make test command. Before running the tests, ensure that the path to the virtual environment is correctly configured.
Steps to Run Tests
-
Configure the Virtual Environment Path: Open the
Makefileand set theVENV_PATHvariable to the path of your virtual environment. For example:VENV_PATH=~/Desktop/Environments/base_computing/micro_dlts_chain/smart_contracts_client/bin/activate
-
Run the Tests: Execute the following command in your terminal:
make test
This command will:
- Activate the virtual environment.
- Run the tests using
unittestframework.
Steps to Generate Coverage Report
-
Run the Coverage Command: Execute the following command in your terminal:
make coverageThis command will:
- Activate the virtual environment.
- Run the tests and measure code coverage.
- Generate a coverage report.
- Generate an HTML report in the
htmlcovdirectory.
Example
Here is an example of the Makefile configuration:
VENV_PATH=~/Desktop/Environments/base_computing/micro_dlts_chain/smart_contracts_client/bin/activate
.PHONY: test coverage
test:
source $(VENV_PATH) && python -m unittest discover -s tests
coverage:
source $(VENV_PATH) && coverage run -m unittest discover -s tests
coverage report
coverage html
echo "Informe HTML generado en la carpeta 'htmlcov'."
Make sure the VENV_PATH points to the correct location of your virtual environment's activate script.
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 basis_vm-0.1.1.tar.gz.
File metadata
- Download URL: basis_vm-0.1.1.tar.gz
- Upload date:
- Size: 43.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07080b710f3c4654d56556bc84c4581b8c3f3d7d057600e510a524890445269d
|
|
| MD5 |
9bf4f3506cb4a41fd665d75cdbaa926c
|
|
| BLAKE2b-256 |
276aeed1ad94924f9ad890585e067244d8f6c81dca55ae3bfc5aa83e60cd6186
|
File details
Details for the file basis_vm-0.1.1-py3-none-any.whl.
File metadata
- Download URL: basis_vm-0.1.1-py3-none-any.whl
- Upload date:
- Size: 52.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d78a6b72a616c2844ee091f48a0def7c621559c9963aa0de5f39ff5b38bbdf40
|
|
| MD5 |
f17c2d7fc198bce4cd624a612bb528d1
|
|
| BLAKE2b-256 |
f793a662a50f925f73363f5c0c74dff6800f70e5063b04009a0a16eea2f61dda
|