mgunit 1.2 API documentation

Unit testing framework for IDL

single page | use frames     summary     class     fields     routine details     file attributes

./

mgunit.pro


top mgunit

mgunit [, tests] [, filename=string] [, /html] [, /xml] [, /gui] [, /junit] [, /color] [, npass=long] [, nfail=long] [, nskip=long] [, ntests=long] [, /failures_only] [, /version]

Runs unit tests provided.

Parameters

tests in optional type=strarr

array of test suite and/or test case classnames

Keywords

filename in optional type=string

name of file to send output to; if not present sends output to the output log

html in optional type=boolean

set to indicate HTML output instead of plain text

xml in optional type=boolean

set to indicate XML output instead of plain text

gui in optional type=boolean

set to bring up an interactive GUI to run the tests

junit in optional type=boolean

set to indicate XML output in JUnit format instead of plain text

color in optional type=boolean

set to print color output to the output log

npass out optional type=long

number of tests that passed

nfail out optional type=long

number of tests that failed

nskip out optional type=long

number of tests that were skipped

ntests out optional type=long

number of tests

failures_only in optional type=boolean

report only failed tests

version in optional type=boolean

set to report version and exit

Examples

If there tests test1_ut__define.pro and test2_ut__define.pro had been created, then they could be run like:

IDL> mgunit, ['test1_ut', 'test2_ut']
Or one test could be run individually like:
IDL> mgunit, 'test1_ut'

File attributes

Modification date: Mon Feb 27 15:23:14 2012
Lines: 113
Docformat: rst rst