2374 |
libraries. In this case, each file is linked with a test case in |
libraries. In this case, each file is linked with a test case in |
2375 |
C or C++, and each function or class and method is tested in |
C or C++, and each function or class and method is tested in |
2376 |
series, with the test case having to check private data or |
series, with the test case having to check private data or |
2377 |
global variable to see if the function or method worked.</para> |
global variables to see if the function or method worked.</para> |
2378 |
|
|
2379 |
<para>This works particularly well for testing API and a level |
<para>This works particularly well for testing APIs and at level |
2380 |
where it is easier to debug them, than by need to trace through |
where it is easier to debug them, than by needing to trace through |
2381 |
the entire appication. Also if there is a specification for the |
the entire appication. Also if there is a specification for the |
2382 |
API to be tested, the testcase can also function as a compliance |
API to be tested, the testcase can also function as a compliance |
2383 |
test.</para> |
test.</para> |