Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Include the tests you want included in the Cases list

  2. Include the folders in which those cases are found in the Folders list
  3. DO NOT add Leave Requirements or Categories filters empty in your RunDef file (and also don't leave them empty lists)th eRunDef file

Below is an example RunDef.m file that efficiently runs the test named STM_GMAT_PD45 which is located in the FRR-13_DynamicsModels folder.

Code Block
RunDef.Build       = 'NightlyBuild';
RunDef.GmatExe     = 'c:\PATHTOYOURBINDIRECTORY\GMAT.exe';
RunDef.Modes       = {'script'};
RunDef.Comparisons = {'truth'};
RunDef.Reporters    = {'ScreenReporter'};
RunDef.Cases        = {'STM_GMAT_PD45'};
RunDef.Folders      = {'FRR-13_DynamicsModels'};
RunDef.FilterMode   = 'and';
%  THIS MUST BE COMMENTED OUT
%RunDefRunDef.Requirements = {}
%  THIS MUST BE COMMENTED OUT
%RunDefRunDef.Categories = {}

Configuration for Nightly Regression Testing

...

This example assumes you have the GMAT requirements downloaded in a local folder called "C:\MyFiles" and that you would like the RTTM placed in that folder.  Simply change the paths to be consistent with your local configuration.

% DefintDefine the desired target file name for the RTTM
outputFileName   = 'C:\MyFiles\RTTM.xlsx';
% Define the name and location of your GMAT requirements Excel spreadsheet
requirementsList = 'C:\MyFiles\GMAT Requirements.xlsx';
% Execute the command to read all tests cases and map tests to requirements
gmattest('computemetrics',requirementsList,outputFileName);

...