Skip to content

avengineers/hammocking

Repository files navigation

HammocKing

Automatic mocking tool for C

CI

Ubuntu

Windows

Build

This project uses poetry. Run the following command to install it using your system's Python >=3.6 installation:

pip install poetry

To create a virtual environment for development run:

poetry install

To debug your Python code in VS Code you need to activate the virtual environment. To activate this project's virtualenv, run:

poetry shell

After that you can select the virtual env in the list of Python installations.

Run all tests:

poetry run pytest --verbose --capture=tee-sys

TODO: Somehow pytest fails when already installed in the system's python distribution. Uninstall it:

pip uninstall pytest

Concept

The basic idea of HammocKing is to use Python and libclang to process and parse sources of an item under test (IUT) for automatic creation of mockups.

Used libraries/sources/repos:

How to create and publish a pypi package

$ # Change version in setup.py to e.g. 0.5.0
$ python setup.py sdist
$ twine upload --repository-url https://test.pypi.org/legacy/dist/hammock-0.5.0.tar.gz