Search Documentation by Keyword

Invoke-deltaTest

You are here:
← All Topics

Executes a test script from within another script.

Any properly configured deltaTest script can be executed simply by calling it. Tests executed in this fashion will use shared configurations for the -NoInput, -ActiveEnvironment, and -ProcessAgentPath parameters, possibly modified for the local system via the +LOCAL script.

Invoke-deltaTest is intended to cover these two use cases:

  • You want to execute multiple test scripts with a single invocation.
  • You wish to override shared or local settings for -NoInput, -ActiveEnvironment, and -ProcessAgentPath, but only for the duration of a single test run.

Both of these use cases are common to DevOps scenarios, and will often be applied in deltaDeploy scripts.

Syntax

Invoke-deltaTest `
    -TestPath <string> `
    [-NoInput <string>] `
    [-ActiveEnvironment <string>] `
    [-ProcessAgentPath <string>]

Parameters

ParameterRDescription
TestPath*The path to the test script to be invoked. Relative paths will be resolved relative to the script execution path.

Example: -TestPath "./Tests"
NoInputOverrides the global & local $NoInput setting for the scope of the test. Valid values: $true, $false
ActiveEnvironmentOverrides the global & local $ActiveEnvironment setting for the scope of the test. Valid values are set in the shared config file.

Example: -ActiveEnvironment "DEV"
ProcessAgentPathOverrides the global & local $MedmProcessAgentPath setting for the scope of the test.

Example: -MedmProcessAgentPath "C:\Program Files\Markit Group\Markit EDM_10_5_3_1\CadisProcessAgent.exe"
×