This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS Unit testing



Dear community,


i am considering something like unit testing for our Software running on Hercules Devices.
I found a lot of information on the wiki and here in the forum, but nothing that really help me with my decision.

So i have a lot of code which is only logic and has nothing todo with the hardware.
So for me the easiest way would be to write some testcase, that is independent from the hardware and i can execute on my local computer.
Would there be an easy framework for example?
As an example i have an simple function that converts an 64bit var into 8*8bit. So there would be an testcase then and i compare the result and print something into an log. Instead of having that run on the hardware it would be superb to run it on my local machine.

The other solution that i found out is the DSS, but with that i have only limit capacities for testing. So what i have to do for that when i'am getting it right is to write an own DSS Script in Javascript and then an configuration for my program, in which the program runs with specific input values. Right? So that wouldn't be exactly what i was looking for. Solution 1 would be a bit better. 

Regards
Moritz

  • Moritz,

    To run the program without hardware would require a simulator. Unfortunately we do not provide simulators for our device platforms. Instead we focus on low cost hardware development platforms like LaunchPads. Thus using DSS with a hardware platform is likely your best option. DSS can do more than just running applications with specific inputs. You can also interact with the application (set breakpoints, check values of variables, read/write memory...).

    Regards,
    John