Configuration constructor
Configuration({
- required bool? help,
- required String? customHtmlTemplatePath,
- required bool? version,
- required bool? pauseAfterLoad,
- required bool? debug,
- required bool? color,
- required String? configurationPath,
- required String? reporter,
- required Map<
String, String> ? fileReporters, - required String? coverage,
- required int? concurrency,
- required int? shardIndex,
- required int? totalShards,
- required Map<
String, Set< ? testSelections,TestSelection> > - required Iterable<
String> ? foldTraceExcept, - required Iterable<
String> ? foldTraceOnly, - required Glob? filename,
- required Iterable<
String> ? chosenPresets, - required Map<
String, Configuration> ? presets, - required Map<
String, RuntimeSettings> ? overrideRuntimes, - required Map<
String, CustomRuntime> ? defineRuntimes, - required bool? noRetry,
- required int? testRandomizeOrderingSeed,
- required bool? stopOnFirstFailure,
- required bool? allowDuplicateTestNames,
- required bool? allowTestRandomization,
- required bool? jsTrace,
- required bool? runSkipped,
- required Iterable<
String> ? dart2jsArgs, - required String? precompiledPath,
- required Iterable<
Pattern> ? globalPatterns, - required Iterable<
CompilerSelection> ? compilerSelections, - required Iterable<
RuntimeSelection> ? runtimes, - required BooleanSelector? includeTags,
- required BooleanSelector? excludeTags,
- required Map<
BooleanSelector, SuiteConfiguration> ? tags, - required Map<
PlatformSelector, SuiteConfiguration> ? onPlatform, - required bool? ignoreTimeouts,
- required Timeout? timeout,
- required bool? verboseTrace,
- required bool? chainStackTraces,
- required bool? skip,
- required int? retry,
- required String? skipReason,
- required PlatformSelector? testOn,
- required Iterable<
String> ? addTags,
Implementation
factory Configuration(
{required bool? help,
required String? customHtmlTemplatePath,
required bool? version,
required bool? pauseAfterLoad,
required bool? debug,
required bool? color,
required String? configurationPath,
required String? reporter,
required Map<String, String>? fileReporters,
required String? coverage,
required int? concurrency,
required int? shardIndex,
required int? totalShards,
required Map<String, Set<TestSelection>>? testSelections,
required Iterable<String>? foldTraceExcept,
required Iterable<String>? foldTraceOnly,
required Glob? filename,
required Iterable<String>? chosenPresets,
required Map<String, Configuration>? presets,
required Map<String, RuntimeSettings>? overrideRuntimes,
required Map<String, CustomRuntime>? defineRuntimes,
required bool? noRetry,
required int? testRandomizeOrderingSeed,
required bool? stopOnFirstFailure,
// Suite-level configuration
required bool? allowDuplicateTestNames,
required bool? allowTestRandomization,
required bool? jsTrace,
required bool? runSkipped,
required Iterable<String>? dart2jsArgs,
required String? precompiledPath,
required Iterable<Pattern>? globalPatterns,
required Iterable<CompilerSelection>? compilerSelections,
required Iterable<RuntimeSelection>? runtimes,
required BooleanSelector? includeTags,
required BooleanSelector? excludeTags,
required Map<BooleanSelector, SuiteConfiguration>? tags,
required Map<PlatformSelector, SuiteConfiguration>? onPlatform,
required bool? ignoreTimeouts,
// Test-level configuration
required Timeout? timeout,
required bool? verboseTrace,
required bool? chainStackTraces,
required bool? skip,
required int? retry,
required String? skipReason,
required PlatformSelector? testOn,
required Iterable<String>? addTags}) {
var chosenPresetSet = chosenPresets?.toSet();
var configuration = Configuration._(
help: help,
customHtmlTemplatePath: customHtmlTemplatePath,
version: version,
pauseAfterLoad: pauseAfterLoad,
debug: debug,
color: color,
configurationPath: configurationPath,
reporter: reporter,
fileReporters: fileReporters,
coverage: coverage,
concurrency: concurrency,
shardIndex: shardIndex,
totalShards: totalShards,
testSelections: testSelections,
foldTraceExcept: foldTraceExcept,
foldTraceOnly: foldTraceOnly,
filename: filename,
chosenPresets: chosenPresetSet,
presets: _withChosenPresets(presets, chosenPresetSet),
overrideRuntimes: overrideRuntimes,
defineRuntimes: defineRuntimes,
noRetry: noRetry,
testRandomizeOrderingSeed: testRandomizeOrderingSeed,
stopOnFirstFailure: stopOnFirstFailure,
includeTags: includeTags,
excludeTags: excludeTags,
globalPatterns: globalPatterns,
suiteDefaults: SuiteConfiguration(
allowDuplicateTestNames: allowDuplicateTestNames,
allowTestRandomization: allowTestRandomization,
jsTrace: jsTrace,
runSkipped: runSkipped,
dart2jsArgs: dart2jsArgs,
precompiledPath: precompiledPath,
compilerSelections: compilerSelections,
runtimes: runtimes,
tags: tags,
onPlatform: onPlatform,
ignoreTimeouts: ignoreTimeouts,
// Test-level configuration
timeout: timeout,
verboseTrace: verboseTrace,
chainStackTraces: chainStackTraces,
skip: skip,
retry: retry,
skipReason: skipReason,
testOn: testOn,
addTags: addTags));
return configuration._resolvePresets();
}