Japanese -->

# CUnit for Mr.Ando.

"CUnit for Mr.Ando" is CppUnit-x based C langage testing framework for Mr.Ando. It provide the C source code for unit testing.

## Introduction.

JUnit is a very powerful Java simple unit test tool. However, many C language engineers cannot understand a Java language.
To a such an engineer sake, CppUnit was developed for C/C++ languages. However, the knowledge over GUI was required for CppUnit. Therefore, many C language engineers cannot compile CppUnit.
To a such an engineer sake, CppUnit-x was developed which operates in a poor environment such as Tornado. However, many C language engineers cannot do understanding C++ language etc. Therefore, many C language engineers cannot compile CppUnit-x too.
Mr.Ando wanted a C language engineer to test!! So,Mr.Ando felt the necessity of creating the C language testing framework by the C language engineers of the C language engineers for the C language engineers.
It is "CUnit for Mr.Ando".
Especially "CUnit for Mr.Ando" was noticed about the following things, and was created.

- It MUST be described by 100% pure C language.
- Even the most poor environment MUST operate.
- MUST not be complicated for a C language engineer (ex .a/.so lib).
- MUST be easy.

## Download.

Please download from the following.

- CUnit for Mr.Ando(Sourceforge download site)

## Composition.

- ./CUnitForAndo/CUnitForAndo -- Main part.
- ./CUnitForAndo/easySample -- easy sample.
- ./CUnitForAndo/Sample1/real -- Sample1.
- ./CUnitForAndo/Sample1/test
- ./CUnitForAndo/Sample1/test1
- ./CUnitForAndo/Sample1/test2
- ./CUnitForAndo/Sample2/real -- Sample2.
- ./CUnitForAndo/Sample2/test
- ./CUnitForAndo/Sample3/real -- Sample3.
- ./CUnitForAndo/Sample3/test
- ./Makefile -- Compress and testing file.
- ./README.txt -- Licence.
- ./CUnitForAndo/html -- This file.

"CUnit for Mr.Ando" uses the following #define space.

- TEST_ASSERT(_a)
  A test is failure when _a is 0.
- TEST_ASSERT_EQUALS(_a,_b)
  A test is success when _a == _b.
- TEST_ASSERT_NOT_EQUALS(_a,_b)
  A test is success when _a != _b.

"CUnit for Mr.Ando" uses the following function space.

- unsigned int testRunner(TEST_FUNCTION testFunction);
  It tests.
- void doTestCountUp(void);
  The number of tests is counted (it is used inside).

## Document

- How to.
- Quality Planning.
- The overview of a software test.
- How to(More...)
  - Sequence
  - Selection
  - Foreach

## Licence

GNU Lesser General Public License

## Bibliography.

- Ando Computer Behavior Research & Design
- CppUnit-x
- JUnit
- Problem and solution of TDD in C

## Auther.

Toshikazu Ando,PMP.

## Change Log

- 1.1.8 -- Bibliography was added.
- 1.1.7 -- testRunner.h was cheanged.
- 1.1.6 -- Document was added.
- 1.1.5 -- Document was added.
- 1.1.4 -- Document was added.
- 1.1.3 -- Document was added.
- 1.1.2 -- Document was added.
- 1.1.1 -- 1st.

## P.S.

Japanese are writing this file. If abnormalities are looked at by English, please gime me fluenet English translation!!