kr18,900

Test-Driven Development in C++ - 06-08 May 2019

Event Information

Share this event

Date and Time

Location

Location

Quality Hotel Grand, Kongsberg

2 Christian Augusts gate

3611 Kongsberg

Norway

View Map

Event description

Description

Unit Testing and Refactoring for Agile Software Development: The Test-Driven Development in C++ course presents a number of modern practices for developing code based on an adaptive development lifecycle. Agility and predictability are two qualities often missing from software development. A test-driven approach, in which design is grown and code delivered incrementally according to functionality or risk, forms the basis of the construction phase of an iterative and incremental development. The use of unit testing provides confidence in existing code and supports the ability to refactor code as development unfolds.


The course is intended as a practical course: the best way to appreciate how test-driven development works and what it feels like is to do it in practice, making sense of the principles it embodies. In this form the course is based on lecture material, demonstration, discussion, exercises and hands-on labs.

Objectives

  • Appreciate the benefits of testing as a design tool and not just a defect reduction technique
  • Recognise the purpose and practice of refactoring in keeping a system supple and adaptable
  • Know how to build up a set of unit tests
  • Understand the consequences of dependency management on testing and code quality

Audience

The course is suitable for software developers experienced in C++ and familiar with object- oriented principles and practices. Any previous exposure to unit testing or Agile development concepts is beneficial but not essential.

Content

Programmer Testing Evidence of care · Testing viewpoint · Pragmatic testing · Automation · Bug pathology · Qualitative and constructive · Testing frameworks

Good Unit Tests Test quality · Good unit tests (GUTs) · Not-so-good unit tests · Fine-grained tests · Behavioural tests · Functional versus operational testing · Black-box tests

Testing Approach Testing sensibility: passive, reactive, active · Plain Ol' Unit Testing (POUT) · Defect-Driven Testing (DDT) · Test-Driven Development · Key TDD practices · The test- first cycle · Definition of done

More GUTs Cohesive and focused tests · Propositional test names · Example-based tests · Choosing example data · Quality of failure · What to include and exclude · Short test cases · Single level of abstraction · Anatomy of a test case (Given–When–Then)

Listening to Your Tests Feedback from testing · Reasons testing can be hard · Technical debt · Code smells · Refactoring · Dimensions of change · White-box testing issues · Coverage

Test-Driven Decoupling Unit testability and coupling · Unmanaged dependencies · External dependencies · Unit versus integration tests · Characterising testability · Singletons and statics · Test doubles · Doubling techniques in C++


About the Instructor

Hubert Matthews has been programming in C++ for over 15 years and he has been teaching it for over 10 years. He also works as a systems architect and software consultant. Hubert has been a member of the UK BSI standards committee for C++. Hubert Matthews is a freelance consultant specialising in system architecture and design as well as training programmers in C++, UML and Java. His clients range from large companies such as DHL and Orange to small companies and startups. He also is technical director or advisor to a number of startup companies. Hubert lives in Oxford and in his abundant spare time he likes to pretend that he coaches rowing, dances salsa, dabbles with martial arts and drives too fast.

Share with friends

Date and Time

Location

Quality Hotel Grand, Kongsberg

2 Christian Augusts gate

3611 Kongsberg

Norway

View Map

Save This Event

Event Saved