Template2Code

News

T2C

MiST Engine

Project Page

Bug Tracker

Forums

Template2Code (T2C) is a collection of tools dealing with template-based file generation. Currently, it includes MiST Engine – Minimal String Template Engine and T2C itself – a system that uses template-based techniques to generate the sources of unit tests as well as other files in the test suites.

Template2Code is free software. It is distributed under the terms of Apache License version 2.0.


T2C 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.

Key features of T2C:

  • Support for development of parameterized tests, fully customizable via T2C-style templates
  • API for connecting each check in a test to the requirement that is checked there (for conformance testing) to ensure traceability of requirements
  • Integration with other testing frameworks like Glib Testing Framework and TETWare
  • Special templates to generate 'minimal' sources of the tests - for debugging, etc.
  • Support for generation of tests not only in C and C++ but also in other languages (if appropriate templates are provided)

T2C can be used both on Linux and Microsoft Windows operating systems.

Latest stable version of T2C is 2.0.0 (codename "Arnor").

T2C documentation is available in the following formats:

Note that T2C source distribution already includes the documentation (HTML format, multiple pages) and the examples.

More about T2C >>


The lightweight template engine (MiST Engine) which is used internally by T2C, is also available as a separate product.

MiST Engine distribution provides a command line tool and an API library that can be used for template-based data generation not only for test development but for many other purposes as well. In fact, MiST Engine is rather generic and is not tied to a particular area of usage.

MiST Engine can be used both on Linux and Microsoft Windows operating systems.

Latest stable version of MiST Engine is 1.0.1.

MiST Engine documentation is available in the following formats:

Note that MiST Engine source distribution already includes the documentation (HTML format, multiple pages).

More about MiST Engine >>