cutest/AllTests.c
2013-05-04 17:27:11 -07:00

27 lines
467 B
C

#include <stdio.h>
#include "CuTest.h"
CuSuite* CuGetSuite(void);
CuSuite* CuStringGetSuite(void);
int RunAllTests(void)
{
CuString *output = CuStringNew();
CuSuite* suite = CuSuiteNew();
CuSuiteAddSuite(suite, CuGetSuite());
CuSuiteAddSuite(suite, CuStringGetSuite());
CuSuiteRun(suite);
CuSuiteSummary(suite, output);
CuSuiteDetails(suite, output);
printf("%s\n", output->buffer);
return suite->failCount;
}
int main(void)
{
return RunAllTests();
}