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"); }
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); }
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); }
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); }
public ShouldConfiguration() : base("Should configuration.") { ErrorAction = new StringOption("Controls if Should throws on error. Use 'Stop' to throw on error, or 'Continue' to fail at the end of the test.", "Stop"); }
public StringOption(StringOption option, string value) : base(option, value) { }
public OutputConfiguration() : base("Output configuration") { Verbosity = new StringOption("The verbosity of output, options are None, Normal, Detailed and Diagnostic.", "Normal"); }
public OutputConfiguration() : base("Output configuration") { Verbosity = new StringOption("The verbosity of output, options are None, Normal, Detailed and Diagnostic.", "Normal"); StackTraceVerbosity = new StringOption("The verbosity of stacktrace output, options are None, FirstLine, Filtered and Full.", "Filtered"); CIFormat = new StringOption("The CI format of error output in build logs, options are None, Auto, AzureDevops and GithubActions.", "Auto"); }