Test_suite - fmauger1/QMol-grid GitHub Wiki

Test suite

The QMol-grid package provides a suite of tests that performs low-level checks on the various properties that are defined throughout its components. The test suite can be used to check basic functions after installing the package or modifying its components.

Run the test suite

Run the entire suite of tests

Run all available unit tests using

QMol_test.test;

Run selected tests

Run unit tests on selected components using

QMol_test.test('test1','test2',___);

The input test names correspond to the QMol-grid classes to be tested, omitting the initial 'QMol_' part of the name, i.e., 'test1' runs the unit tests for the QMol_test1 component. Names of tests are case insensitive.

Run tests in summary mode

Run the same units test as above but with only a summary of the results being desplayed

QMol_test.test('-summary');
QMol_test.test('-summary','test1','test2',___);

For developers

For good practice, every component component (class) or method added to the QMol-grid package should implement its associated unit tests -- see QMol_test for guidelines with defining unit tests.