Check Tutorial

Arien Malec

Copyright (c) 2001-2002 Arien Malec. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".


Table of Contents
1. Introduction
2. Unit testing in C
2.1. Other unit testing frameworks for C
3. Tutorial: Basic unit testing
3.1. How to write a test
3.2. Setting up the money tests
3.3. Test a little, code a little
3.4. Creating a suite
3.5. SRunner output
4. Advanced Features
4.1. Running multiple cases
4.2. No fork mode
4.3. Test fixtures
4.3.1. Test fixture examples
4.3.2. Checked vs Unchecked fixtures
4.4. Multiple suites run through the same SRunner
4.5. Testing signal handling
4.6. Test timeouts
4.7. Test Logging
4.7.1. XML logging
4.8. Conclusion
5. GNU Free Documentation License