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

    ex:

    it('[C1234] example usage for AftTest', () => {
    await aftJasmineTest(async (v: AftJasmineTest) => {
    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

    • testFunction: Func<AftJasmineTest, void | PromiseLike<void>>

      the Func<AftJasmineTest, void | PromiseLike<void>> function to be executed by this AftJasmineTest

    • Optional options: AftTestOptions

      an optional AftTestOptions object containing overrides to internal configuration and settings

    Returns Promise<AftJasmineTest>

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

Generated using TypeDoc