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.1.tar.gz (43.2 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.1-py3-none-any.whl (52.8 kB view details)

Uploaded Python 3

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

Hashes for basis_vm-0.1.1.tar.gz
Algorithm Hash digest
SHA256 07080b710f3c4654d56556bc84c4581b8c3f3d7d057600e510a524890445269d
MD5 9bf4f3506cb4a41fd665d75cdbaa926c
BLAKE2b-256 276aeed1ad94924f9ad890585e067244d8f6c81dca55ae3bfc5aa83e60cd6186

See more details on using hashes here.

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

Hashes for basis_vm-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d78a6b72a616c2844ee091f48a0def7c621559c9963aa0de5f39ff5b38bbdf40
MD5 f17c2d7fc198bce4cd624a612bb528d1
BLAKE2b-256 f793a662a50f925f73363f5c0c74dff6800f70e5063b04009a0a16eea2f61dda

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