Next: , Previous: The test specification document, Up: Testing the library


8.2 Unit testing

We organize unit tests using the following structure:

gnupdf-hg-figures/unit-testing-architecture.png

Figure 8.2: Unit Testing Architecture

Test suites are used to collect unit tests for a given module. In turn each test suite contain a collection of test cases. Each test case identifies a function implemented in the module. Several tests can then be defined to test the function capabilities.

The unit tests are stored in the torture/unit/ directory.

gnupdf-hg-figures/unit-testing-sources.png

Figure 8.3: Unit Testing Sources