Пример #1
0
 public TestResultConfiguration() : base("TestResult configuration.")
 {
     Enabled        = new BoolOption("Enable TestResult.", false);
     OutputFormat   = new StringOption("Format to use for test result report. Possible values: NUnitXml, NUnit2.5 or JUnitXml", "NUnitXml");
     OutputPath     = new StringOption("Path relative to the current directory where test result report is saved.", "testResults.xml");
     OutputEncoding = new StringOption("Encoding of the output file.", "UTF8");
     TestSuiteName  = new StringOption("Set the name assigned to the root 'test-suite' element.", "Pester");
 }
Пример #2
0
 public DebugConfiguration() : base("Debug configuration for Pester. ⚠ Use at your own risk!")
 {
     ShowFullErrors         = new BoolOption("Show full errors including Pester internal stack.", false);
     WriteDebugMessages     = new BoolOption("Write Debug messages to screen.", false);
     WriteDebugMessagesFrom = new StringArrayOption("Write Debug messages from a given source, WriteDebugMessages must be set to true for this to work. You can use like wildcards to get messages from multiple sources, as well as * to get everything.", new string[] { "Discovery", "Skip", "Filter", "Mock", "CodeCoverage" });
     ShowNavigationMarkers  = new BoolOption("Write paths after every block and test, for easy navigation in VSCode.", false);
     ReturnRawResultObject  = new BoolOption("Returns unfiltered result object, this is for development only. Do not rely on this object for additional properties, non-public properties will be renamed without previous notice.", false);
 }
Пример #3
0
 public CodeCoverageConfiguration() : base("CodeCoverage configuration.")
 {
     Enabled        = new BoolOption("Enable CodeCoverage.", false);
     OutputFormat   = new StringOption("Format to use for code coverage report. Possible values: JaCoCo", "JaCoCo");
     OutputPath     = new StringOption("Path relative to the current directory where code coverage report is saved.", "coverage.xml");
     OutputEncoding = new StringOption("Encoding of the output file.", "UTF8");
     Path           = new StringArrayOption("Directories or files to be used for codecoverage, by default the Path(s) from general settings are used, unless overridden here.", new string[0]);
     ExcludeTests   = new BoolOption("Exclude tests from code coverage. This uses the TestFilter from general configuration.", true);
 }
Пример #4
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);
 }
Пример #6
0
 public CodeCoverageConfiguration() : base("CodeCoverage configuration.")
 {
     Enabled               = new BoolOption("Enable CodeCoverage.", false);
     OutputFormat          = new StringOption("Format to use for code coverage report. Possible values: JaCoCo, CoverageGutters", "JaCoCo");
     OutputPath            = new StringOption("Path relative to the current directory where code coverage report is saved.", "coverage.xml");
     OutputEncoding        = new StringOption("Encoding of the output file.", "UTF8");
     Path                  = new StringArrayOption("Directories or files to be used for codecoverage, by default the Path(s) from general settings are used, unless overridden here.", new string[0]);
     ExcludeTests          = new BoolOption("Exclude tests from code coverage. This uses the TestFilter from general configuration.", true);
     RecursePaths          = new BoolOption("Will recurse through directories in the Path option.", true);
     UseBreakpoints        = new BoolOption("EXPERIMENTAL: When false, use Profiler based tracer to do CodeCoverage instead of using breakpoints.", true);
     CoveragePercentTarget = new DecimalOption("Target percent of code coverage that you want to achieve, default 75%.", 75m);
     SingleHitBreakpoints  = new BoolOption("Remove breakpoint when it is hit.", true);
 }
Пример #7
0
 public BoolOption(BoolOption option, bool value) : base(option, value)
 {
 }
Пример #8
0
 public TestDriveConfiguration() : base("TestDrive configuration.")
 {
     Enabled = new BoolOption("Enable TestDrive.", true);
 }
 public TestRegistryConfiguration() : base("TestRegistry configuration.")
 {
     Enabled = new BoolOption("Enable TestRegistry.", true);
 }