• creates a new AftTest instace to be used for executing some Functional Test Assertion and calls the run function to execute the testFunction.

    ex:

    await aftTest('[C1234] example usage for AftTest', async (v: AftTest) => {
    await v.reporter.info('doing some testing...');
    const feature = new FeatureObj();
    await v.verify(() => feature.returnExpectedValueAsync(), equaling('expected value'));
    }); // if PolicyManager.shouldRun('C1234') returns `false` the assertion is not run

    Parameters

    • description: string

      a string describing the test

    • testFunction: AftTestFunction

      a function of type AftTestFunction to be executed by this AftTest

    • Optional options: AftTestOptions

      an optional AftTestOptions object containing overrides to internal configuration and settings

    Returns Promise<AftTest>

    an async Promise<AftTest> that runs the passed in testFunction

Generated using TypeDoc