diff --git a/lib/src/parameterized_group_numeric.dart b/lib/src/parameterized_group_numeric.dart index 2a51922..c6b3c8b 100644 --- a/lib/src/parameterized_group_numeric.dart +++ b/lib/src/parameterized_group_numeric.dart @@ -26,7 +26,7 @@ void parameterizedGroup1( dynamic tags, Map? onPlatform, int? retry, -})=> +}) => parameterizedGroup( description, values, @@ -41,7 +41,6 @@ void parameterizedGroup1( retry: retry, ); - /// Parameterized group with 2 input arguments. See [parameterizedGroup] for more info. @isTestGroup void parameterizedGroup2( @@ -116,7 +115,6 @@ void parameterizedGroup3( retry: retry, ); - /// Parameterized group with 4 input arguments. See [parameterizedGroup] for more info. @isTestGroup void parameterizedGroup4( @@ -139,7 +137,7 @@ void parameterizedGroup4( dynamic tags, Map? onPlatform, int? retry, -})=> +}) => parameterizedGroup( description, values, @@ -154,7 +152,6 @@ void parameterizedGroup4( retry: retry, ); - /// Parameterized group with 5 input arguments. See [parameterizedGroup] for more info. @isTestGroup void parameterizedGroup5( @@ -192,7 +189,6 @@ void parameterizedGroup5( retry: retry, ); - /// Parameterized group with 6 input arguments. See [parameterizedGroup] for more info. @isTestGroup void parameterizedGroup6( @@ -230,7 +226,6 @@ void parameterizedGroup6( retry: retry, ); - /// Parameterized group with 7 input arguments. See [parameterizedGroup] for more info. @isTestGroup void parameterizedGroup7( @@ -271,26 +266,26 @@ void parameterizedGroup7( /// Parameterized group with 8 input arguments. See [parameterizedGroup] for more info. @isTestGroup void parameterizedGroup8( - /// Group description. - Object description, - - /// List of group values. For each values in the list a group test will be executed. - Iterable values, - - /// The test body which is executed for each group value. - /// See [TestParameters] for more info on different bodies. - dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8) body, { - dynamic Function()? setUp, - - /// Provide a tearDown function to the `group` test. - dynamic Function()? tearDown, - String? testOn, - Timeout? timeout, - dynamic skip, - dynamic tags, - Map? onPlatform, - int? retry, - }) => + /// Group description. + Object description, + + /// List of group values. For each values in the list a group test will be executed. + Iterable values, + + /// The test body which is executed for each group value. + /// See [TestParameters] for more info on different bodies. + dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8) body, { + dynamic Function()? setUp, + + /// Provide a tearDown function to the `group` test. + dynamic Function()? tearDown, + String? testOn, + Timeout? timeout, + dynamic skip, + dynamic tags, + Map? onPlatform, + int? retry, +}) => parameterizedGroup( description, values, @@ -308,26 +303,26 @@ void parameterizedGroup8( /// Parameterized group with 9 input arguments. See [parameterizedGroup] for more info. @isTestGroup void parameterizedGroup9( - /// Group description. - Object description, - - /// List of group values. For each values in the list a group test will be executed. - Iterable values, - - /// The test body which is executed for each group value. - /// See [TestParameters] for more info on different bodies. - dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8, A9) body, { - dynamic Function()? setUp, - - /// Provide a tearDown function to the `group` test. - dynamic Function()? tearDown, - String? testOn, - Timeout? timeout, - dynamic skip, - dynamic tags, - Map? onPlatform, - int? retry, - }) => + /// Group description. + Object description, + + /// List of group values. For each values in the list a group test will be executed. + Iterable values, + + /// The test body which is executed for each group value. + /// See [TestParameters] for more info on different bodies. + dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8, A9) body, { + dynamic Function()? setUp, + + /// Provide a tearDown function to the `group` test. + dynamic Function()? tearDown, + String? testOn, + Timeout? timeout, + dynamic skip, + dynamic tags, + Map? onPlatform, + int? retry, +}) => parameterizedGroup( description, values, @@ -345,26 +340,26 @@ void parameterizedGroup9( /// Parameterized group with 10 input arguments. See [parameterizedGroup] for more info. @isTestGroup void parameterizedGroup10( - /// Group description. - Object description, - - /// List of group values. For each values in the list a group test will be executed. - Iterable values, - - /// The test body which is executed for each group value. - /// See [TestParameters] for more info on different bodies. - dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10) body, { - dynamic Function()? setUp, - - /// Provide a tearDown function to the `group` test. - dynamic Function()? tearDown, - String? testOn, - Timeout? timeout, - dynamic skip, - dynamic tags, - Map? onPlatform, - int? retry, - }) => + /// Group description. + Object description, + + /// List of group values. For each values in the list a group test will be executed. + Iterable values, + + /// The test body which is executed for each group value. + /// See [TestParameters] for more info on different bodies. + dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10) body, { + dynamic Function()? setUp, + + /// Provide a tearDown function to the `group` test. + dynamic Function()? tearDown, + String? testOn, + Timeout? timeout, + dynamic skip, + dynamic tags, + Map? onPlatform, + int? retry, +}) => parameterizedGroup( description, values, @@ -377,4 +372,4 @@ void parameterizedGroup10( tags: tags, onPlatform: onPlatform, retry: retry, - ); \ No newline at end of file + ); diff --git a/lib/src/parameterized_test_base.dart b/lib/src/parameterized_test_base.dart index c19a988..a1afb97 100644 --- a/lib/src/parameterized_test_base.dart +++ b/lib/src/parameterized_test_base.dart @@ -59,4 +59,4 @@ void parameterizedTest( retry: retry, ), ).executeTests(body); -} \ No newline at end of file +} diff --git a/lib/src/parameterized_test_numeric.dart b/lib/src/parameterized_test_numeric.dart index c15f11e..568747a 100644 --- a/lib/src/parameterized_test_numeric.dart +++ b/lib/src/parameterized_test_numeric.dart @@ -43,26 +43,26 @@ void parameterizedTest1( /// Parameterized test with 2 input arguments. See [parameterizedTest] for more info. @isTestGroup void parameterizedTest2( - /// Test description. - Object description, - - /// List of test values. For each values in the list a test will be executed. - Iterable values, - - /// The test body which is executed for each test value. - /// See [TestParameters] for more info on different bodies. - dynamic Function(A1, A2) body, { - dynamic Function()? setUp, - - /// Provide a tearDown function to the `group` test. - dynamic Function()? tearDown, - String? testOn, - Timeout? timeout, - dynamic skip, - dynamic tags, - Map? onPlatform, - int? retry, - }) => + /// Test description. + Object description, + + /// List of test values. For each values in the list a test will be executed. + Iterable values, + + /// The test body which is executed for each test value. + /// See [TestParameters] for more info on different bodies. + dynamic Function(A1, A2) body, { + dynamic Function()? setUp, + + /// Provide a tearDown function to the `group` test. + dynamic Function()? tearDown, + String? testOn, + Timeout? timeout, + dynamic skip, + dynamic tags, + Map? onPlatform, + int? retry, +}) => parameterizedTest( description, values, @@ -80,26 +80,26 @@ void parameterizedTest2( /// Parameterized test with 3 input arguments. See [parameterizedTest] for more info. @isTestGroup void parameterizedTest3( - /// Test description. - Object description, - - /// List of test values. For each values in the list a test will be executed. - Iterable values, - - /// The test body which is executed for each test value. - /// See [TestParameters] for more info on different bodies. - dynamic Function(A1, A2, A3) body, { - dynamic Function()? setUp, - - /// Provide a tearDown function to the `group` test. - dynamic Function()? tearDown, - String? testOn, - Timeout? timeout, - dynamic skip, - dynamic tags, - Map? onPlatform, - int? retry, - }) => + /// Test description. + Object description, + + /// List of test values. For each values in the list a test will be executed. + Iterable values, + + /// The test body which is executed for each test value. + /// See [TestParameters] for more info on different bodies. + dynamic Function(A1, A2, A3) body, { + dynamic Function()? setUp, + + /// Provide a tearDown function to the `group` test. + dynamic Function()? tearDown, + String? testOn, + Timeout? timeout, + dynamic skip, + dynamic tags, + Map? onPlatform, + int? retry, +}) => parameterizedTest( description, values, @@ -117,26 +117,26 @@ void parameterizedTest3( /// Parameterized test with 4 input arguments. See [parameterizedTest] for more info. @isTestGroup void parameterizedTest4( - /// Test description. - Object description, - - /// List of test values. For each values in the list a test will be executed. - Iterable values, - - /// The test body which is executed for each test value. - /// See [TestParameters] for more info on different bodies. - dynamic Function(A1, A2, A3, A4) body, { - dynamic Function()? setUp, - - /// Provide a tearDown function to the `group` test. - dynamic Function()? tearDown, - String? testOn, - Timeout? timeout, - dynamic skip, - dynamic tags, - Map? onPlatform, - int? retry, - }) => + /// Test description. + Object description, + + /// List of test values. For each values in the list a test will be executed. + Iterable values, + + /// The test body which is executed for each test value. + /// See [TestParameters] for more info on different bodies. + dynamic Function(A1, A2, A3, A4) body, { + dynamic Function()? setUp, + + /// Provide a tearDown function to the `group` test. + dynamic Function()? tearDown, + String? testOn, + Timeout? timeout, + dynamic skip, + dynamic tags, + Map? onPlatform, + int? retry, +}) => parameterizedTest( description, values, @@ -154,26 +154,26 @@ void parameterizedTest4( /// Parameterized test with 5 input arguments. See [parameterizedTest] for more info. @isTestGroup void parameterizedTest5( - /// Test description. - Object description, - - /// List of test values. For each values in the list a test will be executed. - Iterable values, - - /// The test body which is executed for each test value. - /// See [TestParameters] for more info on different bodies. - dynamic Function(A1, A2, A3, A4, A5) body, { - dynamic Function()? setUp, - - /// Provide a tearDown function to the `group` test. - dynamic Function()? tearDown, - String? testOn, - Timeout? timeout, - dynamic skip, - dynamic tags, - Map? onPlatform, - int? retry, - }) => + /// Test description. + Object description, + + /// List of test values. For each values in the list a test will be executed. + Iterable values, + + /// The test body which is executed for each test value. + /// See [TestParameters] for more info on different bodies. + dynamic Function(A1, A2, A3, A4, A5) body, { + dynamic Function()? setUp, + + /// Provide a tearDown function to the `group` test. + dynamic Function()? tearDown, + String? testOn, + Timeout? timeout, + dynamic skip, + dynamic tags, + Map? onPlatform, + int? retry, +}) => parameterizedTest( description, values, @@ -191,26 +191,26 @@ void parameterizedTest5( /// Parameterized test with 6 input arguments. See [parameterizedTest] for more info. @isTestGroup void parameterizedTest6( - /// Test description. - Object description, - - /// List of test values. For each values in the list a test will be executed. - Iterable values, - - /// The test body which is executed for each test value. - /// See [TestParameters] for more info on different bodies. - dynamic Function(A1, A2, A3, A4, A5, A6) body, { - dynamic Function()? setUp, - - /// Provide a tearDown function to the `group` test. - dynamic Function()? tearDown, - String? testOn, - Timeout? timeout, - dynamic skip, - dynamic tags, - Map? onPlatform, - int? retry, - }) => + /// Test description. + Object description, + + /// List of test values. For each values in the list a test will be executed. + Iterable values, + + /// The test body which is executed for each test value. + /// See [TestParameters] for more info on different bodies. + dynamic Function(A1, A2, A3, A4, A5, A6) body, { + dynamic Function()? setUp, + + /// Provide a tearDown function to the `group` test. + dynamic Function()? tearDown, + String? testOn, + Timeout? timeout, + dynamic skip, + dynamic tags, + Map? onPlatform, + int? retry, +}) => parameterizedTest( description, values, @@ -228,26 +228,26 @@ void parameterizedTest6( /// Parameterized test with 7 input arguments. See [parameterizedTest] for more info. @isTestGroup void parameterizedTest7( - /// Test description. - Object description, - - /// List of test values. For each values in the list a test will be executed. - Iterable values, - - /// The test body which is executed for each test value. - /// See [TestParameters] for more info on different bodies. - dynamic Function(A1, A2, A3, A4, A5, A6, A7) body, { - dynamic Function()? setUp, - - /// Provide a tearDown function to the `group` test. - dynamic Function()? tearDown, - String? testOn, - Timeout? timeout, - dynamic skip, - dynamic tags, - Map? onPlatform, - int? retry, - }) => + /// Test description. + Object description, + + /// List of test values. For each values in the list a test will be executed. + Iterable values, + + /// The test body which is executed for each test value. + /// See [TestParameters] for more info on different bodies. + dynamic Function(A1, A2, A3, A4, A5, A6, A7) body, { + dynamic Function()? setUp, + + /// Provide a tearDown function to the `group` test. + dynamic Function()? tearDown, + String? testOn, + Timeout? timeout, + dynamic skip, + dynamic tags, + Map? onPlatform, + int? retry, +}) => parameterizedTest( description, values, @@ -265,26 +265,26 @@ void parameterizedTest7( /// Parameterized test with 8 input arguments. See [parameterizedTest] for more info. @isTestGroup void parameterizedTest8( - /// Test description. - Object description, - - /// List of test values. For each values in the list a test will be executed. - Iterable values, - - /// The test body which is executed for each test value. - /// See [TestParameters] for more info on different bodies. - dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8) body, { - dynamic Function()? setUp, - - /// Provide a tearDown function to the `group` test. - dynamic Function()? tearDown, - String? testOn, - Timeout? timeout, - dynamic skip, - dynamic tags, - Map? onPlatform, - int? retry, - }) => + /// Test description. + Object description, + + /// List of test values. For each values in the list a test will be executed. + Iterable values, + + /// The test body which is executed for each test value. + /// See [TestParameters] for more info on different bodies. + dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8) body, { + dynamic Function()? setUp, + + /// Provide a tearDown function to the `group` test. + dynamic Function()? tearDown, + String? testOn, + Timeout? timeout, + dynamic skip, + dynamic tags, + Map? onPlatform, + int? retry, +}) => parameterizedTest( description, values, @@ -302,26 +302,26 @@ void parameterizedTest8( /// Parameterized test with 9 input arguments. See [parameterizedTest] for more info. @isTestGroup void parameterizedTest9( - /// Test description. - Object description, - - /// List of test values. For each values in the list a test will be executed. - Iterable values, - - /// The test body which is executed for each test value. - /// See [TestParameters] for more info on different bodies. - dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8, A9) body, { - dynamic Function()? setUp, - - /// Provide a tearDown function to the `group` test. - dynamic Function()? tearDown, - String? testOn, - Timeout? timeout, - dynamic skip, - dynamic tags, - Map? onPlatform, - int? retry, - }) => + /// Test description. + Object description, + + /// List of test values. For each values in the list a test will be executed. + Iterable values, + + /// The test body which is executed for each test value. + /// See [TestParameters] for more info on different bodies. + dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8, A9) body, { + dynamic Function()? setUp, + + /// Provide a tearDown function to the `group` test. + dynamic Function()? tearDown, + String? testOn, + Timeout? timeout, + dynamic skip, + dynamic tags, + Map? onPlatform, + int? retry, +}) => parameterizedTest( description, values, @@ -339,26 +339,26 @@ void parameterizedTest9( /// Parameterized test with 10 input arguments. See [parameterizedTest] for more info. @isTestGroup void parameterizedTest10( - /// Test description. - Object description, - - /// List of test values. For each values in the list a test will be executed. - Iterable values, - - /// The test body which is executed for each test value. - /// See [TestParameters] for more info on different bodies. - dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10) body, { - dynamic Function()? setUp, - - /// Provide a tearDown function to the `group` test. - dynamic Function()? tearDown, - String? testOn, - Timeout? timeout, - dynamic skip, - dynamic tags, - Map? onPlatform, - int? retry, - }) => + /// Test description. + Object description, + + /// List of test values. For each values in the list a test will be executed. + Iterable values, + + /// The test body which is executed for each test value. + /// See [TestParameters] for more info on different bodies. + dynamic Function(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10) body, { + dynamic Function()? setUp, + + /// Provide a tearDown function to the `group` test. + dynamic Function()? tearDown, + String? testOn, + Timeout? timeout, + dynamic skip, + dynamic tags, + Map? onPlatform, + int? retry, +}) => parameterizedTest( description, values, @@ -371,4 +371,4 @@ void parameterizedTest10( tags: tags, onPlatform: onPlatform, retry: retry, - ); \ No newline at end of file + ); diff --git a/lib/src/test_options/group_test_options.dart b/lib/src/test_options/group_test_options.dart index 1ebffe4..a11a5fb 100644 --- a/lib/src/test_options/group_test_options.dart +++ b/lib/src/test_options/group_test_options.dart @@ -24,7 +24,7 @@ class GroupTestOptions { final int? retry; void groupTest(dynamic Function() body) { - dart_test.group( + dart_test.group( description, () { if (setUp != null) {