Tool/software: Code Composer Studio
I read the following reply from a TI employee with interest (relevant paragraph copied below). I too would like to create Unit Tests in C under a separate project within Code Composer Studio, that will Unit test the functions of another project in the same Workspace (presumably via DSS if that is the easiest way). I do not want to write the units tests in Java. If this is possible as mentioned in that reply, are there any examples using C-code in a project in CSS to Unit Test functions in another project that I can leverage from ? This will save me time and present a shallower learning curve to implementing Units Tests.
[UPDATE]: I just discovered that I need not use DSS as per this and this answer given by another TI employee. Instead Parasoft is mentioned. Parasoft indicate they support ARM Compiler v5.1 (I'm using TI's ARM Compiler v5.1.6 under CCS v6.0.x) so Parasoft AFAIK will integrate with my IDE and target ARM MCU (TM4C1290NCPDT) . Parasoft seems a more direct solution to my problem. I understand DSS is the only tool supported by TI, but I don't mind paying for another tool to make my life easier. Am I correct it might be a more direct and integrated solution to my requirements for Unit Testing ?
>>When you say I can create a C harness to call <function_name> and all its permutations;
>>would the test code be written along with my source code in code composer and DSS
>>would be the process to automate and format it into a log report (xml)?
>Yes, exactly. You would write your test code that calls the function you want to test and
>build it all as a single executable. You can then use DSS to automate the running of this executable
regards