public StrykerOptions(string basePath, string reporter, string projectUnderTestNameFilter, int additionalTimeoutMS, string logLevel, bool logToFile,
                       int maxConcurrentTestRunners, int thresholdHigh, int thresholdLow, int thresholdBreak)
 {
     BasePath = basePath;
     Reporter = ValidateReporter(reporter);
     ProjectUnderTestNameFilter = projectUnderTestNameFilter;
     AdditionalTimeoutMS        = additionalTimeoutMS;
     LogOptions = new LogOptions(ValidateLogLevel(logLevel), logToFile);
     MaxConcurrentTestrunners = ValidateMaxConcurrentTestrunners(maxConcurrentTestRunners);
     ThresholdOptions         = ValidateThresholds(thresholdHigh, thresholdLow, thresholdBreak);
 }
Exemple #2
0
 public StrykerOptions(string basePath    = "",
                       string[] reporters = null,
                       string projectUnderTestNameFilter = "",
                       int additionalTimeoutMS           = 30000,
                       string[] excludedMutations        = null,
                       string logLevel = "info",
                       bool logToFile  = false,
                       bool devMode    = false,
                       int maxConcurrentTestRunners = int.MaxValue,
                       int thresholdHigh            = 80,
                       int thresholdLow             = 60,
                       int thresholdBreak           = 0)
 {
     BasePath  = basePath;
     Reporters = ValidateReporters(reporters);
     ProjectUnderTestNameFilter = projectUnderTestNameFilter;
     AdditionalTimeoutMS        = additionalTimeoutMS;
     ExcludedMutations          = ValidateExludedMutations(excludedMutations);
     LogOptions = new LogOptions(ValidateLogLevel(logLevel), logToFile);
     DevMode    = devMode;
     MaxConcurrentTestrunners = ValidateMaxConcurrentTestrunners(maxConcurrentTestRunners);
     ThresholdOptions         = ValidateThresholds(thresholdHigh, thresholdLow, thresholdBreak);
 }