Code Coverage with TPT – The Feature & the Curious: TPT Drift 3

code coverage with tpt testing tool

Code coverage plays an important role in functional testing and that is why code coverage is supported by the TPT testing tool. For some people it is even a high priority component. While judging the quality of your test cases solely based on a high level of code coverage is debatable, it is certainly an essential and omnipotent tool for your test undertaking. That is why the TPT testing tool makes it as easy as possible to measure your code coverage and offers a number of various kinds of coverage to be measured.

Whether you are testing c-code or testing Simulink and Targetlink models, the TPT testing tool can measure the level of code that your test cases cover. (C-code coverage is measured via CTC++ or GNU Gcov and Simulink model coverage is measured via proprietary tools.)

Be it via AUTOSAR, the c-platform, or other environments, in the TPT testing tool you can simply tick the option to measure code coverage when executing your test cases to view your code coverage report. Here, you can choose from a number of different code coverage criteria to be measured such as:

  • Condition coverage
  • Decision coverage
  • Modified condition/ decision coverage (MC/DC)

Moreover, for optimal code coverage, we have developed a tool called TASMO. With this ingenious tool you can automatically generate test cases to maximize your coverage. In fact, you can either do so to begin your test project (and save a lot of time), or you can use TASMO to increase your existing code coverage considerably. Make sure that all requirements are checked with TPT assessments. You can use TASMO with the TPT testing tool for c-code and Simulink models alike.

Next to code coverage, the TPT testing tool also measures requirements coverage and it’s only natural that we make both measurements as accessible and easy to use as possible.

Feel free to browse through our Glossary of Test Terms in case you are looking for terminological explanations.