QMol_testInfo - fmauger1/QMol-grid GitHub Wiki
QMol_testInfo
Implementation-specific suite of tests for the QMol-grid package.
Description
QMol_testInfo overloads QMol_doc
and defines an abstract class whose main purpose is to maintain the list of unit tests available in the QMol-grid package.
Class properties
QMol_testInfo
does not define any member properties
Class methods
Creation
QMol_testInfo
is an abstract class and cannot be instantiated.
testList
Obtain the list of available unit tests
l = QMol_testInfo.testList;
The output l
is a cell vector containing the names of available unit tests. By convention, test-suite names match the name of the associated class without the initial 'QMol_
'. For instance 'disc'
designates the test suite for the QMol_disc
class.
Test suite
For consistency with the rest of the QMol-grid package, QMol_testInfo
defines an associated test suite. Run the test suite for the class in normal or summary mode respectively with
QMol_test.test('testInfo');
QMol_test.test('-summary','testInfo');
For developers
The test-suite list is not automatically generated by the QMol-grid package but should instead be supplied in the testList
method.
See QMol_test for guidelines regarding how to implement a test suite for a now component of the QMol-grid package.
Notes
QMol_testInfo
was introduced in version 01.00.