Unit Test with Cantata++ for C

Day(s): 1
Dates/City:

Contact us

Price:

On request

This one-day course contains several presentations with several practical examples.

We start with a course introduction and an overview of Cantata++. You will gain a general insight in what Cantata++ do, the testing process and how Cantata++ works.

We continue with an introduction to Dynamic Unit testing and the Cantata++ test harness. We address issues like:

  • Test script structure
  • User interface wizards and options
  • Check directives
  • Stubbing
  • Executing tests and checking results

Goal

You will obtain knowledge about Coverage Analysis where we show you how to add coverage analysis to a test script. We also look into coverage analysis metrics and configuring coverage criteria in rulesets.

You learn about Dynamic Integration Testing, where you obtain knowledge about wrapping. Also, we compare wrapping and stubbing, and present wrapping for dynamic
integration testing.

We will look into Advanced Coverage Analysis and Stand-alone Coverage Analysis with Cantata++, and how to combine coverage results:

  • Applying coverage analysis to tests not driven by Cantata++
  • Analysing coverage results with HTML Results Viewer (HRV)
  • Combining coverage results over multiple test runs
  • Analysing combined coverage results with HRV


Also, we address the Static Analysis, its metrics and their uses. For graphics production we are using Cantata++ Analyse.

We introduce you to Advanced Stubbing Techniques, with:

  • Stubbing function pointers
  • Stubbing macros

Participants

This course is designed to suit users of Cantata++ for C.

Previous knowledge

You should have basic knowledge of C programming.

Exercises / Tools

You will work with several practical examples during the training. We are setting up a test project environment and Isolation testing a C maths() function.

We are achieving coverage ruleset criteria, trying Integration Testing, and combining coverage analysis.

Also, we will have exercises in function pointers as parameters to stubs and stubbing function pointers.

Contact

Lena Bernhardsson

phone: +46 (0) 40 59 22 09
phone: +47 (0) 92 44 22 09 (no)
lena.bernhardsson@nohau.se

Content
  • Introduction
  • Dynamic Unit Testing
  • Coverage Analysis
  • Dynamic Integration Testing
  • Advanced Coverage Analysis
  • Static Analysis
  • Advanced Stubbing
 
Share |