Hardware Reference
In-Depth Information
Test-Naming Structure
The test format is identical for all tests. This makes it easier for other software to parse them. The format includes the
following items in the following order:
1.
The test name
2.
Information about the test (included in parentheses)
Ellipsis points (i.e., ... )
3.
4.
The test result status
The following line shows an example:
name of test ( information about test ) ... test result status
Test Status Options
The tests themselves only have three valid outcomes: success, failure, or error:
ok
FAIL
ERROR
Test Summary
That last section of the test is a summary. It includes information such as how many tests were run, how long they
took, and how many failures occurred. The test result summary is separated from the test by dashes, like so:
--------------------------
Here's an example of the summary format, followed by final condition:
Ran n tests in Secs
OK
FAILED (failures=n)
The variable n is replaced by the correct number of tests, and the exact number of failures that occurred in the
test run.
Arduino Test Suite Basic Functions
The following functions allow you to start, print, and end tests, respectively. I'll describe them in detail in the
following sections.
ATS_begin()
ATS_end()
ATS_PrintTestStatus()
 
Search WWH ::




Custom Search