Getting Metainformation by Overriding ITest::copyinfo

The Test Framework provides a means for getting textual metainformation about a test. To do this, override the ITest::copyInfo function. Inside copyInfo, call the inherited implementation, then add key-value pairs with the metainformation for their ITest subclass.

For example:

class IMyTest: public ITest {
    ...
protected:
    void copyInfo();
};

void IMyTest::copyInfo() {
	    ITest::copyInfo();
	 addInfo(kDescriptionKey, "Test which tests ITest.");
	 addInfo(kInputSyntaxKey, "[-r ]");
	 addInfo(kTargetClassKey, "ITarget");
}