Skip to content

avengineers/hammocking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

94a8e3c · Mar 11, 2025
Mar 6, 2025
Sep 19, 2024
Jun 6, 2023
Mar 5, 2025
Mar 5, 2025
Sep 19, 2024
Jun 28, 2022
Sep 6, 2022
Aug 28, 2024
Sep 19, 2024
Sep 19, 2024
Mar 7, 2025
Mar 11, 2025
Sep 19, 2024
Mar 7, 2025
Sep 15, 2022

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