Name

test_run — Launch tests

Calling Sequence

      N = test_run()
      N = test_run(module[,test_name[,options]])
    

Parameters

module

a vector of string. It can be the name of a module or the absolute path of a toolbox.

test_name

a vector of string

options

a vector of string

  • no_check_ref

  • no_check_error_output

  • create_ref

  • list

  • help

  • mode_nw

  • mode_nwni

  • nonreg_test

  • unit_test

Examples

// Launch all tests
test_run();
test_run([]);
test_run([],[]);

// Test one or several module
test_run('core');
test_run(SCI+'/modules/core');
test_run('core',[]);
test_run(['core','string']);

// Launch one or several test in a specified module
test_run('core',['trycatch','opcode']);

// Options

test_run([],[],'no_check_ref');
test_run([],[],'create_ref');
test_run([],[],'list');
test_run([],[],'help');
test_run([],[],'nonreg_test');
test_run([],[],'unit_test');

test_run([],[],['no_check_ref','mode_nw']);

// Do not check the error output (std err)
test_run('boolean','bug_2799','no_check_error_output');
   

Authors

PM