If somebody is looking for unit testing inside Keil for STM32, please look this example.
github.com/.../UnityKeilSTM32
This will be useful for people new to Test Driven Development. Also a help file is placed inside the git repository.
This has be adopted/extension from original document by Niall Cooling (blog.feabhas.com).
Also check github.com/.../blinky for more information.
I have gotten your example to run, thanks for the sample. Can you tell me how to get CMOCK to be used in the same project?