mgunit/
mgtestsuite__define.pro
Test suites are containers for test cases. Either subclass MGtestSuite and add test suites/test cases in its init method or create a MGtestSuite and use the add method to add test suites/cases.
Class description for mgtestsuite
Properties
- npass get
- nfail get
- name get init
- ntestcases get
- test_runner init
- ntests get
Fields
- testcases obj_new()
IDL_Container holding test suites or test cases
- npass 0L
number of passing tests contained in the hierarchy below this test suite
- nfail 0L
number of failing tests contained in the hierarchy below this test suite
- name ''
name of the object
- testRunner obj_new()
subclass of MGtestRunner
- level 0L
number of layers below the top-most containing test suite
Routines
mgtestsuite::runRun the contained test suites or test cases.
mgtestsuite::add, testsAdd a scalar or array of test suites or test cases.
mgtestsuite::getProperty [, name=string] [, npass=integer] [, nfail=integer] [, ntestcases=integer] [, ntests=integer]Get properties of the object.
mgtestsuite::setLevel, levelTest suites can contain other test suites or test cases.
mgtestsuite::cleanupFree resources.
result = mgtestsuite::init( [name=string], test_runner=object)Initialize test suite.
mgtestsuite__defineDefine member variables.
Routine details
topmgtestsuite::add
mgtestsuite::add, tests
Add a scalar or array of test suites or test cases.
Parameters
- tests in required type=strarr
classnames of test suites or test cases
topmgtestsuite::getProperty
mgtestsuite::getProperty [, name=string] [, npass=integer] [, nfail=integer] [, ntestcases=integer] [, ntests=integer]
Get properties of the object.
Keywords
- name out optional type=string
name of the object
- npass out optional type=integer
number of passing tests contained in the hierarchy below this object
- nfail out optional type=integer
number of failing tests contained in the hierarchy below this object
- ntestcases out optional type=integer
number of directly contained test suites or test cases
- ntests out optional type=integer
number of tests contained in the hierarchy below this object
topmgtestsuite::setLevel
mgtestsuite::setLevel, level
Test suites can contain other test suites or test cases. The level is the number of layers down from the top most test suite (level 0).
Parameters
- level in required type=integer
new level of object
topmgtestsuite::init
result = mgtestsuite::init( [name=string], test_runner=object)
Initialize test suite.
Return value
1 for success, 0 for failure
Keywords
- name in optional type=string default=classname
name of the object
- test_runner in required type=object
subclass of MGtestRunner
File attributes
| Modification date: | Tue Nov 20 11:24:27 2007 |
| Lines: | 161 |
![[attach.png]](../idldoc-resources/attach.png)