On 03.08.2016 15:57, Doherty, Declan wrote: > Some of the things I've come across include: > No standard output format to integrated with continuous regression systems > No ability to specify specific unit tests or groups of tests to run from the > command line > No standard set of test assertions used across the test suites. > No standard setup and teardown functions across test suites, state from > previous test > suite can break current > Requirement to use a python script to orchestrate test runs. > No support for mocking functionality. > > I know that none of the above couldn't be fixed in our current test > application, but I would > question if it is effort worthwhile when we take an off the shelf framework, > which does all > those things and a whole lot more, which has been test and used in a huge > variety of > projects. > > I certainly willing to look at other frameworks both C and C++ but I yet to > find a C framework > which come close to the usability and flexibility of the popular C++ ones.
We use cmocka.org for tests. Written in C. It has support for: * mocking; * setup/teardown; * asserts; * test groups. Output is nicely formatted.