Configuration constructor

Configuration({
  1. required bool? help,
  2. required String? customHtmlTemplatePath,
  3. required bool? version,
  4. required bool? pauseAfterLoad,
  5. required bool? debug,
  6. required bool? color,
  7. required String? configurationPath,
  8. required String? reporter,
  9. required Map<String, String>? fileReporters,
  10. required String? coverage,
  11. required int? concurrency,
  12. required int? shardIndex,
  13. required int? totalShards,
  14. required Map<String, Set<TestSelection>>? testSelections,
  15. required Iterable<String>? foldTraceExcept,
  16. required Iterable<String>? foldTraceOnly,
  17. required Glob? filename,
  18. required Iterable<String>? chosenPresets,
  19. required Map<String, Configuration>? presets,
  20. required Map<String, RuntimeSettings>? overrideRuntimes,
  21. required Map<String, CustomRuntime>? defineRuntimes,
  22. required bool? noRetry,
  23. required int? testRandomizeOrderingSeed,
  24. required bool? stopOnFirstFailure,
  25. required bool? allowDuplicateTestNames,
  26. required bool? allowTestRandomization,
  27. required bool? jsTrace,
  28. required bool? runSkipped,
  29. required Iterable<String>? dart2jsArgs,
  30. required String? precompiledPath,
  31. required Iterable<Pattern>? globalPatterns,
  32. required Iterable<CompilerSelection>? compilerSelections,
  33. required Iterable<RuntimeSelection>? runtimes,
  34. required BooleanSelector? includeTags,
  35. required BooleanSelector? excludeTags,
  36. required Map<BooleanSelector, SuiteConfiguration>? tags,
  37. required Map<PlatformSelector, SuiteConfiguration>? onPlatform,
  38. required bool? ignoreTimeouts,
  39. required Timeout? timeout,
  40. required bool? verboseTrace,
  41. required bool? chainStackTraces,
  42. required bool? skip,
  43. required int? retry,
  44. required String? skipReason,
  45. required PlatformSelector? testOn,
  46. 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();
}