Ejemplo n.º 1
0
 public RunConfiguration() : base("Run configuration.")
 {
     Path          = new StringArrayOption("Directories to be searched for tests, paths directly to test files, or combination of both.", new string[] { "." });
     ExcludePath   = new StringArrayOption("Directories or files to be excluded from the run.", new string[0]);
     ScriptBlock   = new ScriptBlockArrayOption("ScriptBlocks containing tests to be executed.", new ScriptBlock[0]);
     Container     = new ContainerInfoArrayOption("ContainerInfo objects containing tests to be executed.", new ContainerInfo[0]);
     TestExtension = new StringOption("Filter used to identify test files.", ".Tests.ps1");
     Exit          = new BoolOption("Exit with non-zero exit code when the test run fails.", false);
     PassThru      = new BoolOption("Return result object to the pipeline after finishing the test run.", false);
 }
 public RunConfiguration() : base("Run configuration.")
 {
     Path          = new StringArrayOption("Directories to be searched for tests, paths directly to test files, or combination of both.", new string[] { "." });
     ExcludePath   = new StringArrayOption("Directories or files to be excluded from the run.", new string[0]);
     ScriptBlock   = new ScriptBlockArrayOption("ScriptBlocks containing tests to be executed.", new ScriptBlock[0]);
     Container     = new ContainerInfoArrayOption("ContainerInfo objects containing tests to be executed.", new ContainerInfo[0]);
     TestExtension = new StringOption("Filter used to identify test files.", ".Tests.ps1");
     Exit          = new BoolOption("Exit with non-zero exit code when the test run fails. When used together with Throw, throwing an exception is preferred.", false);
     Throw         = new BoolOption("Throw an exception when test run fails. When used together with Exit, throwing an exception is preferred.", false);
     PassThru      = new BoolOption("Return result object to the pipeline after finishing the test run.", false);
     SkipRun       = new BoolOption("Runs the discovery phase but skips run. Use it with PassThru to get object populated with all tests.", false);
 }
Ejemplo n.º 3
0
 public ScriptBlockArrayOption(ScriptBlockArrayOption option, ScriptBlock[] value) : base(option, value)
 {
 }