Skip to main content

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

  1. Configure the Virtual Environment Path: Open the Makefile and set the VENV_PATH variable to the path of your virtual environment. For example:

    VENV_PATH=~/Desktop/Environments/base_computing/micro_dlts_chain/smart_contracts_client/bin/activate
    
  2. Run the Tests: Execute the following command in your terminal:

    make test
    

    This command will:

    • Activate the virtual environment.
    • Run the tests using unittest framework.

Steps to Generate Coverage Report

  1. Run the Coverage Command: Execute the following command in your terminal:

    make coverage
    

    This command will:

    • Activate the virtual environment.
    • Run the tests and measure code coverage.
    • Generate a coverage report.
    • Generate an HTML report in the htmlcov directory.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

basis_vm-0.1.2.tar.gz (43.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

basis_vm-0.1.2-py3-none-any.whl (52.9 kB view details)

Uploaded Python 3

File details

Details for the file basis_vm-0.1.2.tar.gz.

File metadata

  • Download URL: basis_vm-0.1.2.tar.gz
  • Upload date:
  • Size: 43.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.17

File hashes

Hashes for basis_vm-0.1.2.tar.gz
Algorithm Hash digest
SHA256 24a8cbb7361eb9a6252354bdf21a8f708d9f51f671b28e8cbebb5ccfaa6059fc
MD5 35a202d2efa1d3547351adceae43b718
BLAKE2b-256 fb3d76d93779ff74bc373497f78cfd5a34c7c0473ce7f9bb69b79beab82b1a04

See more details on using hashes here.

File details

Details for the file basis_vm-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: basis_vm-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 52.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.17

File hashes

Hashes for basis_vm-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8de8aa92382ea4a3c697acf26663d0e0e182e6cc2f9b8f73d87282caa56575bb
MD5 c7c59d21be1796cc08d2fdae4a54bad3
BLAKE2b-256 bb08a069cbc9e9f82502eeb1a1ad38c7fa626b6a9efd649a47cd01f8d5362dbf

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