Difference between revisions of "NA-MIC-kit-curriculum/Testing-Based Programming/How to run Dynamic Analysis"

From NAMIC Wiki
Jump to: navigation, search
Line 5: Line 5:
  
 
This tutorial illustrates how to run dynamic analysis in a small project.
 
This tutorial illustrates how to run dynamic analysis in a small project.
 +
 +
== Requisites ==
  
 
You should have completed first the tutorials:
 
You should have completed first the tutorials:
 +
 +
* [[NA-MIC-kit-curriculum/Testing-Based Programming/How to add Tests in CMake|How to add Tests in CMake]]
 +
* [[NA-MIC-kit-curriculum/Testing-Based Programming/How to run Code Coverage|How to run Code Coverage]]
 +
 +
= Installing Valgrind =
 +
 +
Valgrind is the applications that will check your tests at run time and will report their defects.
 +
 +
In Ubuntu and Debian GNU/Linux you can install Valgrind by doing
 +
 +
  sudo apt-get install valgrind

Revision as of 16:14, 12 December 2009

Home < NA-MIC-kit-curriculum < Testing-Based Programming < How to run Dynamic Analysis

Dynamic Analysis focuses on detecting defects at run time, particularly: Uninitialized variables and Memory leaks.


Introduction

This tutorial illustrates how to run dynamic analysis in a small project.

Requisites

You should have completed first the tutorials:

Installing Valgrind

Valgrind is the applications that will check your tests at run time and will report their defects.

In Ubuntu and Debian GNU/Linux you can install Valgrind by doing

  sudo apt-get install valgrind