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.
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:
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.
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).