IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
CommandLineOptions is the base class the specific option classes used for nunit3-console and nunitlite. It encapsulates all common settings and features of both. This is done to ensure that common features remain common and for the convenience of having the code in a common location. The class inherits from the Mono Options OptionSet class and provides a central location for defining and parsing options. More...
Public Member Functions | |
CommandLineOptions (params string[] args) | |
bool | Validate () |
Public Attributes | |
List< string > | errorMessages = new List<string>() |
Protected Member Functions | |
string | RequiredValue (string val, string option, params string[] validValues) |
Case is ignored when val is compared to validValues. When a match is found, the returned value will be in the canonical case from validValues. More... | |
int | RequiredInt (string val, string option) |
virtual void | ConfigureOptions () |
Properties | |
bool | Explore [get, private set] |
bool | ShowHelp [get, private set] |
bool | ShowVersion [get, private set] |
IList< string > | InputFiles [get] |
IList< string > | TestList [get] |
string | WhereClause [get, private set] |
bool | WhereClauseSpecified [get] |
int | DefaultTimeout [get] |
bool | DefaultTimeoutSpecified [get] |
int | RandomSeed [get] |
bool | RandomSeedSpecified [get] |
int | NumberOfTestWorkers [get] |
bool | NumberOfTestWorkersSpecified [get] |
bool | StopOnError [get, private set] |
bool | WaitBeforeExit [get, private set] |
bool | NoHeader [get, private set] |
bool | NoColor [get, private set] |
bool | Verbose [get, private set] |
bool | TeamCity [get, private set] |
string | OutFile [get, private set] |
bool | OutFileSpecified [get] |
string | ErrFile [get, private set] |
bool | ErrFileSpecified [get] |
string | DisplayTestLabels [get, private set] |
string | WorkDirectory [get] |
bool | WorkDirectorySpecified [get] |
string | InternalTraceLevel [get, private set] |
bool | InternalTraceLevelSpecified [get] |
bool | Full [get, private set] |
Indicates whether a full report should be displayed. More... | |
IList< OutputSpecification > | ResultOutputSpecifications [get] |
IList< OutputSpecification > | ExploreOutputSpecifications [get] |
IList< string > | ErrorMessages [get] |
Private Member Functions | |
string | ExpandToFullPath (string path) |
Private Attributes | |
bool | validated |
bool | noresult |
List< string > | inputFiles = new List<string>() |
List< string > | testList = new List<string>() |
int | defaultTimeout = -1 |
int | randomSeed = -1 |
int | numWorkers = -1 |
string | workDirectory = null |
List< OutputSpecification > | resultOutputSpecifications = new List<OutputSpecification>() |
List< OutputSpecification > | exploreOutputSpecifications = new List<OutputSpecification>() |
CommandLineOptions is the base class the specific option classes used for nunit3-console and nunitlite. It encapsulates all common settings and features of both. This is done to ensure that common features remain common and for the convenience of having the code in a common location. The class inherits from the Mono Options OptionSet class and provides a central location for defining and parsing options.
|
inline |
|
inline |
Referenced by NUnit.ConsoleRunner.Tests.CommandLineTests.AssemblyAloneIsValid(), NUnit.ConsoleRunner.Tests.CommandLineTests.AssemblyName(), NUnit.ConsoleRunner.Tests.CommandLineTests.CanRecognizeLowerCaseOptionValues(), NUnit.ConsoleRunner.Tests.CommandLineTests.CanRecognizeStringOptions(), NUnit.ConsoleRunner.Tests.CommandLineTests.CanRegognizeInProcessOption(), NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithFilePath(), NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithFilePathAndFormat(), NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithFilePathAndTransform(), NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithFilePathUsingEqualSign(), NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithoutPath(), NUnit.ConsoleRunner.Tests.CommandLineTests.FileNameWithoutResultOptionLooksLikeParameter(), NUnit.ConsoleRunner.Tests.CommandLineTests.InvalidCommandLineParms(), NUnit.ConsoleRunner.Tests.CommandLineTests.InvalidOption(), NUnit.ConsoleRunner.Program.Main(), NUnit.ConsoleRunner.Tests.CommandLineTests.MissingValuesAreReported(), NUnit.ConsoleRunner.Tests.CommandLineTests.NoInputFiles(), NUnit.ConsoleRunner.Tests.CommandLineTests.ResultOptionMayBeRepeated(), NUnit.ConsoleRunner.Tests.CommandLineTests.ResultOptionWithFilePath(), NUnit.ConsoleRunner.Tests.CommandLineTests.ResultOptionWithFilePathAndFormat(), NUnit.ConsoleRunner.Tests.CommandLineTests.ResultOptionWithFilePathAndTransform(), NUnit.ConsoleRunner.Tests.CommandLineTests.ResultOptionWithoutFileNameIsInvalid(), NUnit.ConsoleRunner.Tests.CommandLineTests.TimeoutCausesErrorIfValueIsNotInteger(), NUnit.ConsoleRunner.Tests.CommandLineTests.TimeoutIsMinusOneIfNoOptionIsProvided(), and NUnit.ConsoleRunner.Tests.CommandLineTests.TimeoutParsesIntValueCorrectly().
|
inlineprotected |
Case is ignored when val is compared to validValues. When a match is found, the returned value will be in the canonical case from validValues.
|
inlineprotected |
|
inlineprivate |
References NUnit.Env.DocumentFolder.
|
inlineprotectedvirtual |
Reimplemented in NUnit.Common.ConsoleOptions.
References NUnit.Common.TestNameParser.Parse().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
List<string> NUnit.Common.CommandLineOptions.errorMessages = new List<string>() |
|
getprivate set |
Referenced by NUnit.ConsoleRunner.ConsoleRunner.Execute(), NUnitLite.TextRunner.Execute(), NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithFilePath(), NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithFilePathAndFormat(), NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithFilePathAndTransform(), NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithFilePathUsingEqualSign(), and NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithoutPath().
|
getprivate set |
Referenced by NUnit.ConsoleRunner.Program.Main().
|
getprivate set |
Referenced by NUnit.ConsoleRunner.Program.Main().
|
get |
Referenced by NUnit.ConsoleRunner.Tests.CommandLineTests.AssemblyName(), NUnit.ConsoleRunner.ConsoleRunner.DisplayTestFiles(), NUnitLite.TextRunner.Execute(), NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithFilePath(), NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithFilePathAndFormat(), NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithFilePathAndTransform(), NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithFilePathUsingEqualSign(), NUnit.ConsoleRunner.Tests.CommandLineTests.FileNameWithoutResultOptionLooksLikeParameter(), NUnit.ConsoleRunner.Program.Main(), NUnit.ConsoleRunner.Tests.CommandLineTests.NoInputFiles(), NUnit.ConsoleRunner.Tests.CommandLineTests.ResultOptionWithFilePath(), NUnit.ConsoleRunner.Tests.CommandLineTests.ResultOptionWithFilePathAndFormat(), and NUnit.ConsoleRunner.Tests.CommandLineTests.ResultOptionWithFilePathAndTransform().
|
get |
|
getprivate set |
|
get |
|
get |
Referenced by NUnitLite.TextUI.DisplayRequestedOptions(), NUnitLite.TextUI.DisplayRunSettings(), NUnitLite.TextRunner.MakeRunSettings(), NUnit.ConsoleRunner.ConsoleRunner.MakeTestPackage(), NUnit.ConsoleRunner.Tests.CommandLineTests.TimeoutCausesErrorIfValueIsNotInteger(), NUnit.ConsoleRunner.Tests.CommandLineTests.TimeoutIsMinusOneIfNoOptionIsProvided(), and NUnit.ConsoleRunner.Tests.CommandLineTests.TimeoutParsesIntValueCorrectly().
|
get |
|
get |
|
get |
Referenced by NUnit.ConsoleRunner.ConsoleRunner.MakeTestPackage().
|
get |
|
get |
Referenced by NUnit.ConsoleRunner.ConsoleRunner.MakeTestPackage().
|
getprivate set |
|
getprivate set |
Referenced by NUnit.ConsoleRunner.Program.Main().
|
getprivate set |
Referenced by NUnit.ConsoleRunner.Program.Main().
|
getprivate set |
Referenced by NUnit.ConsoleRunner.ConsoleRunner.RunTests(), and NUnitLite.TextUI.TextUI().
|
getprivate set |
Referenced by NUnit.ConsoleRunner.ConsoleRunner.MakeTestPackage().
|
getprivate set |
Referenced by NUnitLite.TextUI.DisplayRequestedOptions(), NUnitLite.TextUI.DisplayRunSettings(), NUnit.ConsoleRunner.ConsoleRunner.RunTests(), NUnitLite.Tests.CommandLineTests.ShouldSetTeamCityFlagAccordingToArgsAndDefauls(), and NUnit.ConsoleRunner.Tests.CommandLineTests.ShouldSetTeamCityFlagAccordingToArgsAndDefauls().
|
getprivate set |
Referenced by NUnit.ConsoleRunner.ConsoleRunner.CreateOutputWriter().
|
get |
Referenced by NUnit.ConsoleRunner.ConsoleRunner.CreateOutputWriter().
|
getprivate set |
|
get |
|
getprivate set |
Referenced by NUnit.ConsoleRunner.ConsoleRunner.RunTests(), and NUnitLite.TextUI.TestFinished().
|
get |
Referenced by NUnit.ConsoleRunner.ConsoleRunner.ConsoleRunner(), NUnitLite.TextUI.DisplayRequestedOptions(), NUnitLite.TextUI.DisplayRunSettings(), NUnitLite.TextRunner.ExploreTests(), NUnit.ConsoleRunner.Program.Main(), NUnitLite.TextRunner.MakeRunSettings(), NUnit.ConsoleRunner.ConsoleRunner.MakeTestPackage(), and NUnitLite.TextRunner.RunTests().
|
get |
|
getprivate set |
|
get |
Referenced by NUnit.ConsoleRunner.ConsoleRunner.MakeTestPackage().
|
getprivate set |
Indicates whether a full report should be displayed.
Referenced by NUnitLite.TextRunner.ReportResults().
|
get |
Referenced by NUnit.ConsoleRunner.Tests.CommandLineTests.ResultOptionMayBeRepeated(), NUnit.ConsoleRunner.Tests.CommandLineTests.ResultOptionWithFilePath(), NUnit.ConsoleRunner.Tests.CommandLineTests.ResultOptionWithFilePathAndFormat(), NUnit.ConsoleRunner.Tests.CommandLineTests.ResultOptionWithFilePathAndTransform(), NUnit.ConsoleRunner.ConsoleRunner.RunTests(), and NUnitLite.TextRunner.RunTests().
|
get |
Referenced by NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithFilePath(), NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithFilePathAndFormat(), NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithFilePathAndTransform(), NUnit.ConsoleRunner.Tests.CommandLineTests.ExploreOptionWithFilePathUsingEqualSign(), NUnit.ConsoleRunner.ConsoleRunner.ExploreTests(), and NUnitLite.TextRunner.ExploreTests().
|
get |
Referenced by NUnit.ConsoleRunner.Tests.CommandLineTests.AssemblyAloneIsValid(), NUnit.ConsoleRunner.Tests.CommandLineTests.FileNameWithoutResultOptionLooksLikeParameter(), NUnit.ConsoleRunner.Tests.CommandLineTests.InvalidCommandLineParms(), NUnit.ConsoleRunner.Tests.CommandLineTests.InvalidOption(), NUnit.ConsoleRunner.Program.Main(), NUnit.ConsoleRunner.Tests.CommandLineTests.MissingValuesAreReported(), and NUnit.ConsoleRunner.Tests.CommandLineTests.ResultOptionWithoutFileNameIsInvalid().