SuiteConfiguration constructor

SuiteConfiguration({
  1. required bool? allowDuplicateTestNames,
  2. required bool? allowTestRandomization,
  3. required bool? jsTrace,
  4. required bool? runSkipped,
  5. required Iterable<String>? dart2jsArgs,
  6. required String? precompiledPath,
  7. required Iterable<CompilerSelection>? compilerSelections,
  8. required Iterable<RuntimeSelection>? runtimes,
  9. required Map<BooleanSelector, SuiteConfiguration>? tags,
  10. required Map<PlatformSelector, SuiteConfiguration>? onPlatform,
  11. required bool? ignoreTimeouts,
  12. required Timeout? timeout,
  13. required bool? verboseTrace,
  14. required bool? chainStackTraces,
  15. required bool? skip,
  16. required int? retry,
  17. required String? skipReason,
  18. required PlatformSelector? testOn,
  19. required Iterable<String>? addTags,
})

Implementation

factory SuiteConfiguration(
    {required bool? allowDuplicateTestNames,
    required bool? allowTestRandomization,
    required bool? jsTrace,
    required bool? runSkipped,
    required Iterable<String>? dart2jsArgs,
    required String? precompiledPath,
    required Iterable<CompilerSelection>? compilerSelections,
    required Iterable<RuntimeSelection>? runtimes,
    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 config = SuiteConfiguration._(
      allowDuplicateTestNames: allowDuplicateTestNames,
      allowTestRandomization: allowTestRandomization,
      jsTrace: jsTrace,
      runSkipped: runSkipped,
      dart2jsArgs: dart2jsArgs,
      testSelections: const {},
      precompiledPath: precompiledPath,
      compilerSelections: compilerSelections,
      runtimes: runtimes,
      tags: tags,
      onPlatform: onPlatform,
      ignoreTimeouts: ignoreTimeouts,
      metadata: Metadata(
          timeout: timeout,
          verboseTrace: verboseTrace,
          chainStackTraces: chainStackTraces,
          skip: skip,
          retry: retry,
          skipReason: skipReason,
          testOn: testOn,
          tags: addTags));
  return config._resolveTags();
}