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.0.tar.gz (42.9 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.0-py3-none-any.whl (52.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for basis_vm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 292063dba02bb9a9baa6e75c590ffa73f7d6f84ec37352905a8496b43a544288
MD5 8eaca0642d2aec07b2867ac7e4ef67f7
BLAKE2b-256 fa5a5dbce34b3a128567fccdd3dbedf3eb29a47ab94f6405fff2281c15eb5df3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for basis_vm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1ff7ab8eb573af91af450f3586fdbb38b1c53afa79ae3c18abc8ea78b521329
MD5 e3e96101b72628318f1c5b6f1ce371cd
BLAKE2b-256 9134171e17de6183728a92d0184a3802a06eb0cad6e451679f00e0645bfb71df

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