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;
たったこれだけ。少し書き加えてチーム内のツールにできそう。
| 固定リンク
この記事へのコメントは終了しました。

コメント