Appendix B. The simple system test framework

System tests are particularly important when you are generating lots of code quickly. One small bug in the generator can cause a lot of bad code to be generated. That is why all of the case studies in this book include a section showing you how to use a system test framework to test the generator.

You can find test frameworks for Ruby at these sites:

The system test framework we describe in this appendix is not meant to replace any of these utilities. Our goal is to show you a convenient example of building a simple framework to test command line-based code generators.

B.1. The basic ...

Get Code Generation in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.