Droidcon 2011 Amsterdam: Live Presentation of Test Coverage on Android Phones
We will start with a basic explanation, what test coverage basically is. We have a look at different levels of coverage, starting from function coverage, to decision, condition, MC/DC (as required by DO178B) and multi-condition. The test coverage tool in question is Testwell CTC++ plus the CTC++ for Java and C# add-on. Testwell CTC++ (Test Coverage Analyzer for C and C++) is an easy to use tool, to get test coverage virtually with any compiler and any target. Based on the assumption the JVM is just another target, and Java is just a kind of C++ dialect, the Java add-on was written as front-end from me. It worked later almost out of the box with Android. First, we have a look, how to setup tool-chain for a native (NDK) application, how to prefix/overwrite the compiler there, then compile it, download to the phone, run the application, drop then data to /data/data/`package-name`/MON.txt (the place, you can e.g. store high-scores), and transfer it back to the host, convert it and create the test coverage report. Then we will proceed with a Java Application, how to build with CTC++ and Ant. Download and run it. Basically same procedure to get coverage data out, convert and generate the reports. Testwell CTC++ has been successfully used in aeronautics (DO178B), medical devices and automotive industry. The tool is a proprietary tool of Testwell Oy, Tampere, Finland.
About the lecturer:
You are interested in Testing of Embedded Systems?
last updated: 28 Nov 2011 © 2011 Verifysoft Technology GmbH |
