Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Oliver Sedlacek
05/24/12 10:01
Read: 602 times
Uk


 
#187506 - Unit testing experience
Responding to: ???'s previous message
David,

I've used Polyspace (it's called something else now it's been acquired by Matlab) for in depth static code analysis. It's strength is that it will find run time exceptions without the tester having to figure out a comprehensive set of test inputs.

More recently I've been using Tessy from Razorcat. This automatically generates a test harness and compares actual output with expected results, and it can do this on the target for some targets. If your target isn't support, you can run your code on the PC. The tester needs to work out test cases and expected results, but it does provide help in the form of a classification tree editor and an execution path trace. It's a pretty good tool to prove that your functions meet your requirements (you do have requirements for your functions, don't you?). As it can be automated, it's really, really useful for regression testing.

I know of people who use RTRT, but support seems pretty patchy these days and I haven't used it myself.

Whichever way you go, you will probably have to put some effort into your code to make it testable. Once your are familiar with the issues, you will probably start to code with a 'design for test' mentality, and you will get better producivity from your tools.

Although the cost of these tools look steep, they are generally very cost effective.

List of 7 messages in thread
TopicAuthorDate
Unit Testing (on or off target)      David Good      05/23/12 10:29      
   Target - Yes or No      Michael Karas      05/23/12 22:39      
   Target - Yes or No      Michael Karas      05/23/12 22:39      
      I do lot of testing in test bench on PC      Per Westermark      05/24/12 02:56      
         Specifics of test setup      David Good      05/24/12 09:42      
            Is a progressive work      Per Westermark      05/24/12 12:05      
   Unit testing experience      Oliver Sedlacek      05/24/12 10:01      

Back to Subject List