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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| basis_vm-0.1.2.tar.gz | 43.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|