Chapter 1. Introduction

T2C stands for Template–to–Code. It is a system to facilitate development of functional tests including the tests for conformance to specification (standard, reference, etc.).

The main goal of T2C is to automate some of the tedious and repetitive tasks involved in test development. T2C tools use special templates to generate the source code of the tests from the parameterized tests provided by the developer. It is especially useful when it is necessary to create a number of tests which differ only in several parameters — a quite common situation in the development of functional tests.

The key features of T2C are as follows:

This manual gives an overview of T2C, explains a typical workflow used in test development with T2C tools and presents a reference of various aspects related to T2C. It also contains a case study where the tests for several functions from GLib library are developed step by step.

Although T2C can be used both on Linux and Microsoft Windows platforms, the examples are done on Linux in this manual unless specifically stated. The process of test development is quite similar on Microsoft Windows systems.

The latest stable version of T2C as well as the development versions can be found at Template–to–Code project site at SourceForge.net