# Mbed TLS test framework This document is an overview of the Mbed TLS test framework and test tools. This document is incomplete. You can help by expanding it. ## Unit tests See ### Unit test descriptions Each test case has a description which succinctly describes for a human audience what the test does. The first non-comment line of each paragraph in a `.data` file is the test description. The following rules and guidelines apply: * Test descriptions may not contain semicolons, line breaks and other control characters, or non-ASCII characters.
Rationale: keep the tools that process test descriptions (`generate_test_code.py`, [outcome file](#outcome-file) tools) simple. * Test descriptions must be unique within a `.data` file. If you can't think of a better description, the convention is to append `#1`, `#2`, etc.
Rationale: make it easy to relate a failure log to the test data. Avoid confusion between cases in the [outcome file](#outcome-file). * Test descriptions should be a maximum of **66 characters**.
Rationale: 66 characters is what our various tools assume (leaving room for 14 more characters on an 80-column line). Longer descriptions may be truncated or may break a visual alignment.
We have a lot of test cases with longer descriptions, but they should be avoided. At least please make sure that the first 66 characters describe the test uniquely. * Make the description descriptive. “foo: x=2, y=4” is more descriptive than “foo #2”. “foo: 0