[ CCUnit project page ] |  | [ CCUnit home page ]

# CCUnit Documentation

### 1.2

CCUnit is a simple framework to write repeatable tests with C language.

[see also Japanese documents]

## Installation

Below are the installation steps for installing CCUnit:

1. expand the archive file.
2. cd to expanded dir.
3. run the ``./configure`' file.
4. type `make` to create ccunit library.
5. type `make install` to install.

## Getting Started

Modules give you a organized view of CCUnit modules.

You find additional samples in the examples directory. some complex number library test cases

- libcomplex.a - complex number library
  - complex.c
  - complex.h
- runTestFixture
  - runTestFixture.c - main program
  - testComplex.c - test cases
- runTestSuite
  - runTestSuite.c - main program
  - testComplex.c - test cases
  - testComplexMulDiv.c - test cases
  - complexTestSuite.c - create test suite function
- runTestRunner
  - runTestRunner.c - main program
  - testComplex.c - test cases
  - testComplexMulDiv.c - test cases
  - complexTestSuite.c - create test suite function
- runTest
  - runTest.c - main program
  - testComplex.c - test cases
  - suiteComplex.c - auto generated test suite from testComplex.c

## Documentation

CCUnit Cookbook

  A cookbook for implementing tests with CCUnit. (and cookbook in japanese)

## Lincense

This library is released under the GNU Lesser General Public License version 2.

## Related Links

- C Test Units
  - CUnit: CUnit is Unit Testing Framework for 'C' language.

- EmbUnit, EmbUnit:

Embedded Unit is unit testing framework for Embedded C System. Its design was copied from JUnit and CUnit and more, and then adapted somewhat for Embedded C System. Embedded Unit does not require std C libs. All objects are allocated to const area.

- JUnit: JUnit is a regression testing framework written by Erich Gamma and Kent Beck. It is used by the developer who implements unit tests in Java.

- C++ Test Units
  - CppUnit: CppUnit is a C++ unit testing framework.

- CxxTest: CxxTest is a JUnit/CppUnit/xUnit-like framework for C++.

- ccUnit: ccUnit is a C++ unit testing framework.

- eXtreme Programing
  - XProgramming.com: an Extreme Programming Resources.

- XPJUG: Japan XP User Group.

| hosts this site. |  | Send comments to: CCUnit Developer |