Current Page:
NeXtMidas Training
Primitives
Test Macros
Introduction to Test Macros
|
|
- Introduction to Test Macros
- Now that you have written a reasonably-complex primitive it is time to test it.
- Test macros are the standard NeXtMidas way of testing primitives and intrinsics.
- Unit tests are used when testing libraries. (These will be covered later.)
- The NeXtMidas confidence testing tool will automatically run any test macros or unit tests.
nM> CONFIDENCE <OPT>
- Types of tests:
- Non-interactive
- These are preferred.
- Require no user-interaction.
- Done for numerical primitives.
- Interactive
- Only run with
CONFIDENCE/INTERACTIVE or if test macro is run manually.
- Usually have a "
if interAct then " section.
- Require user interaction.
- Requires graphical setup for test to run.
- Done for graphical primitives and primitives that require a user to
inspect the output.
X-Midas Users Take Note: |
Testing primitives is easier in NeXtMidas than it is in X-Midas. Use of macro tests is
common throughout the NeXtMidas SYS option tree and also done in many user-created option
trees.
|
|
|
|