Here are the results of iSYSTEMs poll:
66,7% answered "yes, every developer should do unit testing".
25,0% said "no".
8,3% don´t know...
This result reflects a trend for embedded software development.
Most of the developers know about the benefits of unit testing:
- test as much and as early as possible in the development process. The earlier the cheaper to fix a bug.
- test a single function without having implemented/or having access to all code
- proove that a function behaves according to the specification/requirements
- proove that there is no dead code (code coverage)
- build a certain set of tests (test know-how) for regression testing if the function code has changed
- ...
However, most of them don't do it because:
- in most cases an additional tool is necessary
- it is very time consuming because of additional compile-link-download-execute cycles
- traditional unit test tools instrument the code to
* generate a test harness for a single function
* measure code coverage (e.g., to measure the execution of every single statement and/or decision)
- it is not the orginal code
- ...
So, this rises a big challenge for tool vendors such as iSYSTEM. In Q3/2009 iSYSTEM will publish a new
version of isystem.connect with an add-on for unit testing. Stay tuned!