Automatic mocking tool for C
This project uses Pipenv. Run the following command to install it using your system's Python >=3.6 installation:
pip install pipenv
To create a virtual environment for development run:
pipenv install --dev
To delete the currently used virtual environment run:
pipenv --rm
To debug your Python code in VS Code you need to activate the virtual environment. To activate this project's virtualenv, run:
pipenv shell
After that you can select the virtual env in the list of Python installations.
Run all tests:
pipenv run pytest --verbose --capture=tee-sys
TODO: Somehow pytest fails when already installed in the system's python distribution. Uninstall it:
pip uninstall pytest
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:
$ # 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