t_run_tests

t_run_tests(test_names, verbose)

t_run_tests() - Run a series of tests.

all_ok = t_run_tests(test_names, verbose)
Inputs:
  • test_names (cell array) – cell array with names of individual test scripts to run

  • verbose (integer) – (optional, default = 0) level of detail of output

    • 0 – print a single line for each test, plus summary line

    • 1 – print full output for each test, plus summary section

Output:

all_ok (boolean) – (optional) true if all tests passed and the number of tests matches the expected number, false otherwise

Runs a set of tests whose names are given in the cell array test_names.

Example:

tests{end+1} = 't_loadcase';
tests{end+1} = 't_jacobian';
tests{end+1} = 't_hessian';
t_run_tests( tests, verbose );

See also t_begin(), t_end().