Generates Objective-C tests from introspecting actual methods.
somewhat neglected
It's generally more profitable and easier to let the tests be AI generated.
| Release Version | Release Notes | AI Documentation |
|---|---|---|
| RELEASENOTES | DeepWiki for mulle-testgen |
Generate Objective-C test files. This script loads an Objective-C static library. For each non-root Objective-C class that is defined in this library it emits a test file. By default existing tests are not overwritten.
You should first craft your library. Then generate the test after having
built the library. Then generate the tests and then setup your mulle-test
folder. You can not run mulle-testgen inside the test folder, as
mulle-test will not have a static library.
So the initial sequence might be:
mulle-sde craft # mulle-testgen should be in `./dependency/bin` now
mulle-sde run mulle-testgen generate
mulle-sde test initPrevent generation of specific tests, by creating a '.' file of the same name:
touch test/10_generated/.foo.mIf no tests are selected with options a simple "noleak" test is created.
Use mulle-sde to add mulle-testgen to your project:
mulle-sde add github:MulleFoundation/mulle-testgenUse mulle-sde to build and install mulle-testgen:
mulle-sde install --prefix /usr/local \
https://github.com/MulleFoundation/mulle-testgen/archive/latest.tar.gzDownload the latest tar or zip archive and unpack it.
Install mulle-testgen into /usr/local with cmake:
PREFIX_DIR="/usr/local"
cmake -B build \
-DMULLE_SDK_PATH="${PREFIX_DIR}" \
-DCMAKE_INSTALL_PREFIX="${PREFIX_DIR}" \
-DCMAKE_PREFIX_PATH="${PREFIX_DIR}" \
-DCMAKE_BUILD_TYPE=Release &&
cmake --build build --config Release &&
cmake --install build --config ReleaseNat! for Mulle kybernetiK