wiki:Projects/GSoC/TestingReview/CMock

Version 5 (modified by Xiaochen Pan, on Jul 7, 2012 at 1:09:47 AM) (diff)

moved CMock to TestingReview/CMock

TestingReview/CMock

CMock is a highly automated testing framework based on Unity, a unit testing framework. It have also provided handy tools supporting mocking functionality.

+ With the heavy usage of Ruby, which enables the high level of automation, comes with highly strict test-writing format and light tests writing effort compared to other testing frameworks supporting mocking functionality.

+ It is well suited for both RTEMS based and Host based testing, where RTEMS-based testing is hard to guarantee for a large number of tests frameworks.

+ It supports several compilation options, such as CMOCK_MEM_STATIC and CMOCK_MEM_SIZE, the combination of which limits the total amount of memory the testing program could use during run time. If the tests needs more memory than specified, it quit tests. Also, there are a lot of other compilation options that facilitate testing under embedded environments.

+ The tests results are reported with line number and function names indicated.

+ The scripts-rich feature have largely automated test running process.

+ CMock also supports setUp() and tearDown() functions runned before and after each test functions, which is similar to concepts in test fixtures.

+ Unlike other test framework evaluated, it is upgradable to Ceedling, which is a script driven framework based on CMock and Unity.