项目作者: MulleFoundation

项目描述 :
🦟 Torture your code with auto-generated tests
高级语言: Shell
项目地址: git://github.com/MulleFoundation/mulle-testgen.git
创建时间: 2019-05-21T22:43:58Z
项目社区:https://github.com/MulleFoundation/mulle-testgen

开源协议:BSD 3-Clause "New" or "Revised" License

下载


mulle-testgen

🦟 Torture your code with auto-generated tests

Generates Objective-C tests from introspecting actual methods.

somewhat neglected

Release Version Release Notes
Mulle kybernetiK tag Build Status RELEASENOTES

Usage

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:

  1. mulle-sde craft # mulle-testgen should be in `./dependency/bin` now
  2. mulle-sde run mulle-testgen generate
  3. mulle-sde test init

Prevent generation of specific tests, by creating a ‘.’ file of the same
name:

  1. touch test/10_generated/.foo.m

If no tests are selected with options a simple “noleak” test is created.

You are here

Overview

Add

Use mulle-sde to add mulle-testgen to your project:

  1. mulle-sde add github:MulleFoundation/mulle-testgen

Install

Use mulle-sde to build and install mulle-testgen:

  1. mulle-sde install --prefix /usr/local \
  2. https://github.com/MulleFoundation/mulle-testgen/archive/latest.tar.gz

Legacy Installation

Download the latest tar or zip archive and unpack it.

Install mulle-testgen into /usr/local with cmake:

  1. cmake -B build \
  2. -DCMAKE_INSTALL_PREFIX=/usr/local \
  3. -DCMAKE_PREFIX_PATH=/usr/local \
  4. -DCMAKE_BUILD_TYPE=Release &&
  5. cmake --build build --config Release &&
  6. cmake --install build --config Release

Author

Nat! for Mulle kybernetiK