Skip to main content

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.

Metadata

Release files for basis-vm 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for basis-vm 0.1.2
File Size Uploaded
basis_vm-0.1.2.tar.gz 43.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for basis-vm 0.1.2
File Interpreter ABI Platform
basis_vm-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 96.2 kB

Release files / basis_vm-0.1.2.tar.gz

Download URL basis_vm-0.1.2.tar.gz
Size 43.3 kB
Tags Source
SHA-256 checksum
How to use checksums
24a8cbb7361eb9a6252354bdf21a8f708d9f51f671b28e8cbebb5ccfaa6059fc
BLAKE2b-256 checksum
How to use checksums
fb3d76d93779ff74bc373497f78cfd5a34c7c0473ce7f9bb69b79beab82b1a04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.17

Release files / basis_vm-0.1.2-py3-none-any.whl

Download URL basis_vm-0.1.2-py3-none-any.whl
Size 52.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8de8aa92382ea4a3c697acf26663d0e0e182e6cc2f9b8f73d87282caa56575bb
BLAKE2b-256 checksum
How to use checksums
bb08a069cbc9e9f82502eeb1a1ad38c7fa626b6a9efd649a47cd01f8d5362dbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.17

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page