• Skip to content
  • Skip to link menu
Akademy 2009
 
 

Practical Unit Testing

Speaker: Thomas Zander

Since the introduction of the QTestLib in Qt4 developers have the option of easily making their libraries an applications unit tested for maximum maintainability. The availability of the tools and the QTestLib tutorials on how to use those is useful, but not always enough. Having access to good tools does not automatically make a new developer an expert in using them and so its important to see how applications and libraries can be unit tested effectively using a set of techniques learned in the field.

In this presentation I will explain 3 different categories of testing; a Testing single methods output for known input b Testing the state of one class after calling methods on it c Mock object testing Each of these are used in a different context and in the presentation I will show examples of what method of testing you use for which kind of code.

I'll continue by showing actual Qt/KDE (coding) examples of how, in practice, each of these categories dictate a different approach to testing and then show actual unit tests and their code to test these. After this presentation the developer will have seen proven practices of unit testing and will be able to see how to use unit testing techniques in which situation. I will end with a set of guidelines on how to design your classes to make them even easier to unit test.

Thomas Zander

[Thomas Zander]

Thomas is a long time KDE/KOffice contributor and is currently working for QtSoftware developing Qt. He has almost 10 years of unit testing experience and is known to prefer working on projects that have unit tests. Thomas lives and works in Oslo/Norway where he likes to go out into the forrests in his spare time.


Overview

Skip menu "Overview"
  • Akademy 2009

Conference

Skip menu "Conference"
  • Program
  • Presentations
  • Speakers
  • Technical Papers

Information

Skip menu "Information"
  • Contact

Previous Events

Skip menu "Previous Events"
  • aKademy 2008
  • aKademy 2007
  • aKademy 2006
  • aKademy 2005
  • aKademy 2004
  • Kastle 2003

Global navigation links

  • KDE Home
  • KDE Accessibility Home
  • Description of Access Keys
  • Back to content
  • Back to menu

Search:


Maintained by The Akademy Team
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal