Previous Next        Current Page: NeXtMidas Training / Primitives / Test Macros / Introduction to Test Macros
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
   + Overview   
   + Open, Process, Close   
   + Building   
   + The NeXtMidas API   
   + Lab 1   
   + Special Variables   
   + Lab 2   
   + Lab 3*   
   + Files in a Primitive   
   + Lab 4   
   + Lab 5*   
   - Test Macros   
      - Introduction to Test Macros   
      - Lamest Reasons for not Testing   
      - Creating a Test Macro   
      - Test Strategy   
      - Layout of a Test Macro   
   + Lab 6   
   + Real Time Controls   
   + Lab 7   
   + Working with Messages   
   + Lab 8   
   + Primitive Restarts   
   + Introduction to DSP   
   + Lab 9   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • 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.