5. Expectation Database

While typically tests are expected to pass, it sometimes is meaningful to indicate a different expectation. QMTest represents expectations by results. Here, the outcomes represent the expectated outcome, and the annotations may explain the expectation.

An expectation database stores expectations associated with a test database. It provides an interface to query expectations by test id.

In the simplest case all tests are expected to pass. In a slightly less simple case, an existing set of results, obtained from a previous test run, may be used as expectations for a subsequent test run.