parameterizedTest1<A1> function

  1. @isTestGroup
void parameterizedTest1<A1>(
  1. Object description,
  2. Iterable values,
  3. dynamic body(
    1. A1
    ), {
  4. CustomDescriptionBuilder? customDescriptionBuilder,
  5. dynamic setUp()?,
  6. dynamic tearDown()?,
  7. String? testOn,
  8. Timeout? timeout,
  9. dynamic skip,
  10. dynamic tags,
  11. Map<String, dynamic>? onPlatform,
  12. int? retry,
})

Parameterized test with 1 input arguments. See parameterizedTest for more info.

Implementation

@isTestGroup
void parameterizedTest1<A1>(
  /// Test description.
  Object description,

  /// List of test values. For each values in the list a test will be executed.
  Iterable<dynamic> values,

  /// The test body which is executed for each test value.
  /// See [TestParameters] for more info on different bodies.
  dynamic Function(A1) body, {
  /// Provide a custom description builder which will build the description for all the test values test executed.
  CustomDescriptionBuilder? customDescriptionBuilder,
  dynamic Function()? setUp,

  /// Provide a tearDown function to the `group` test.
  dynamic Function()? tearDown,
  String? testOn,
  Timeout? timeout,
  dynamic skip,
  dynamic tags,
  Map<String, dynamic>? onPlatform,
  int? retry,
}) =>
    parameterizedTest(
      description,
      values,
      p1(body),
      customDescriptionBuilder: customDescriptionBuilder,
      setUp: setUp,
      tearDown: tearDown,
      testOn: testOn,
      timeout: timeout,
      skip: skip,
      tags: tags,
      onPlatform: onPlatform,
      retry: retry,
    );