MGunit documentation

Unit testing for IDL

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

./

mgutcompoundrunner__define.pro

Results for tests, test cases, and test suites are reported to the test runner. The MGutHTMLRunner displays the results in the output HTML file.

Class description for mgutcompoundrunner

Inheritance

Properties

_extra init
filename init

Fields in mguttestrunner

Fields in IDL_CONTAINER

Routines

mgutcompoundrunner::reportTestSuiteStart, testsuite, ntestcases=integer, ntests=integer, level=level

Report a test suite has begun.

mgutcompoundrunner::reportTestSuiteResult, npass=integer, nfail=integer, level=integer

Report the results of a test suite.

mgutcompoundrunner::reportTestCaseStart, testcase, ntests=integer, level=level

Report a test case has begun.

mgutcompoundrunner::reportTestCaseResult, npass=integer, nfail=integer, level=integer

Report the results of a test case.

mgutcompoundrunner::reportTestStart, testname, level=integer

Report the start of single test.

mgutcompoundrunner::reportTestResult, msg, /passed, time=float

Report the result of a single test.

mgutcompoundrunner::cleanup

Free resources.

result = mgutcompoundrunner::init( [filename=string], _extra=_extra)

Initialize the test runner.

mgutcompoundrunner__define

Define member variables.

Routine details

topmgutcompoundrunner::reportTestSuiteStart

mgutcompoundrunner::reportTestSuiteStart, testsuite, ntestcases=integer, ntests=integer, level=level

Report a test suite has begun.

Parameters

testsuite in required type=string

name of test suite

Keywords

ntestcases in required type=integer

number of test suites/cases contained by the test suite

ntests in required type=integer

number of tests contained in the hierarchy below this test suite

level in required type=level

level of test suite

topmgutcompoundrunner::reportTestSuiteResult

mgutcompoundrunner::reportTestSuiteResult, npass=integer, nfail=integer, level=integer

Report the results of a test suite.

Keywords

npass in required type=integer

number of passing tests contained in the hierarchy below the test suite

nfail in required type=integer

number of failing tests contained in the hierarchy below the test suite

level in required type=integer

level of test suite

topmgutcompoundrunner::reportTestCaseStart

mgutcompoundrunner::reportTestCaseStart, testcase, ntests=integer, level=level

Report a test case has begun.

Parameters

testcase in required type=string

name of test case

Keywords

ntests in required type=integer

number of tests contained in this test case

level in required type=level

level of test case

topmgutcompoundrunner::reportTestCaseResult

mgutcompoundrunner::reportTestCaseResult, npass=integer, nfail=integer, level=integer

Report the results of a test case.

Keywords

npass in required type=integer

number of passing tests

nfail in required type=integer

number of failing tests

level in required type=integer

level of test case

topmgutcompoundrunner::reportTestStart

mgutcompoundrunner::reportTestStart, testname, level=integer

Report the start of single test.

Parameters

testname in required type=string

name of test

Keywords

level in required type=integer

level of test case

topmgutcompoundrunner::reportTestResult

mgutcompoundrunner::reportTestResult, msg, /passed, time=float

Report the result of a single test.

Parameters

msg in required type=string

message to display when test fails

Keywords

passed in required type=boolean

whether the test passed

time in required type=float

time for the test to run

topmgutcompoundrunner::cleanup

mgutcompoundrunner::cleanup

Free resources.

topmgutcompoundrunner::init

result = mgutcompoundrunner::init( [filename=string], _extra=_extra)

Initialize the test runner.

Return value

1 for success, 0 for failure

Keywords

filename in optional type=string

if present, output is sent that file, otherwise output is sent to stdout

_extra

topmgutcompoundrunner__define

mgutcompoundrunner__define

Define member variables.

File attributes

Modification date: Wed Apr 22 23:28:57 2009
Lines: 190
Docformat: rst rst