« テストを自動化して何をしたい VS テストを自動化したら何ができる | トップページ | Stack Unit Testing Framework for C (SUtest) »

MinUnit -- a minimal unit testing framework for C

C言語のxUnit系テストツールを探していたら、こんなのを発見。

MinUnit -- a minimal unit testing framework for C

/* file: minunit.h */
#define mu_assert(message, test) do { if (!(test)) return message; } while (0)
#define mu_run_test(test) do { char *message = test(); tests_run++; \
    if (message) return message; } while (0)
extern int tests_run;

たったこれだけ。少し書き加えてチーム内のツールにできそう。

|

« テストを自動化して何をしたい VS テストを自動化したら何ができる | トップページ | Stack Unit Testing Framework for C (SUtest) »

コメント

この記事へのコメントは終了しました。

トラックバック


この記事へのトラックバック一覧です: MinUnit -- a minimal unit testing framework for C:

« テストを自動化して何をしたい VS テストを自動化したら何ができる | トップページ | Stack Unit Testing Framework for C (SUtest) »