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

# CCUnit Documentation

### 2.0

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.

## Sample Codes

You find additional samples in the examples directory.

- complex - some complex number library test cases

- libcomplex.a - complex number library
  - complex.c
  - complex.h
- runTestCase
  - runTestCase.c - main program
  - testComplex.c - test cases
- runTestCaseRunner
  - runTestCaseRunner.c - main program
  - testComplex.c - test cases
- runTestCaseSetup
  - runTestCaseSetup.c - main program
  - testComplexSetup.c - test cases
- runTestSuite
  - runTestSuite.c - main program
  - testComplexSetup.c - test cases
  - testComplexArith.c - test cases
- runTestSuiteAuto
  - runTest.c - main program
  - testComplexSetup.c - test cases
  - testComplexArith.c - test cases
  - suiteTestComplex.c - auto generated test suite.

## 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.

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