@@ -2,6 +2,7 @@ import 'package:meta/meta.dart';
22import 'package:test/test.dart' ;
33
44import '../parameterized_test.dart' ;
5+ import 'test_options/value_with_test_options.dart' ;
56
67/// Parameterized test with 1 input arguments. See [parameterizedTest] for more info.
78@isTestGroup
@@ -15,6 +16,8 @@ void parameterizedTest1<A1>(
1516 /// The test body which is executed for each test value.
1617 /// See [TestParameters] for more info on different bodies.
1718 dynamic Function (A1 ) body, {
19+ /// Provide a custom description builder which will build the description for all the test values test executed.
20+ CustomDescriptionBuilder ? customDescriptionBuilder,
1821 dynamic Function ()? setUp,
1922
2023 /// Provide a tearDown function to the `group` test.
@@ -30,6 +33,7 @@ void parameterizedTest1<A1>(
3033 description,
3134 values,
3235 p1 (body),
36+ customDescriptionBuilder: customDescriptionBuilder,
3337 setUp: setUp,
3438 tearDown: tearDown,
3539 testOn: testOn,
@@ -52,6 +56,8 @@ void parameterizedTest2<A1, A2>(
5256 /// The test body which is executed for each test value.
5357 /// See [TestParameters] for more info on different bodies.
5458 dynamic Function (A1 , A2 ) body, {
59+ /// Provide a custom description builder which will build the description for all the test values test executed.
60+ CustomDescriptionBuilder ? customDescriptionBuilder,
5561 dynamic Function ()? setUp,
5662
5763 /// Provide a tearDown function to the `group` test.
@@ -67,6 +73,7 @@ void parameterizedTest2<A1, A2>(
6773 description,
6874 values,
6975 p2 (body),
76+ customDescriptionBuilder: customDescriptionBuilder,
7077 setUp: setUp,
7178 tearDown: tearDown,
7279 testOn: testOn,
@@ -89,6 +96,8 @@ void parameterizedTest3<A1, A2, A3>(
8996 /// The test body which is executed for each test value.
9097 /// See [TestParameters] for more info on different bodies.
9198 dynamic Function (A1 , A2 , A3 ) body, {
99+ /// Provide a custom description builder which will build the description for all the test values test executed.
100+ CustomDescriptionBuilder ? customDescriptionBuilder,
92101 dynamic Function ()? setUp,
93102
94103 /// Provide a tearDown function to the `group` test.
@@ -104,6 +113,7 @@ void parameterizedTest3<A1, A2, A3>(
104113 description,
105114 values,
106115 p3 (body),
116+ customDescriptionBuilder: customDescriptionBuilder,
107117 setUp: setUp,
108118 tearDown: tearDown,
109119 testOn: testOn,
@@ -126,6 +136,8 @@ void parameterizedTest4<A1, A2, A3, A4>(
126136 /// The test body which is executed for each test value.
127137 /// See [TestParameters] for more info on different bodies.
128138 dynamic Function (A1 , A2 , A3 , A4 ) body, {
139+ /// Provide a custom description builder which will build the description for all the test values test executed.
140+ CustomDescriptionBuilder ? customDescriptionBuilder,
129141 dynamic Function ()? setUp,
130142
131143 /// Provide a tearDown function to the `group` test.
@@ -141,6 +153,7 @@ void parameterizedTest4<A1, A2, A3, A4>(
141153 description,
142154 values,
143155 p4 (body),
156+ customDescriptionBuilder: customDescriptionBuilder,
144157 setUp: setUp,
145158 tearDown: tearDown,
146159 testOn: testOn,
@@ -163,6 +176,8 @@ void parameterizedTest5<A1, A2, A3, A4, A5>(
163176 /// The test body which is executed for each test value.
164177 /// See [TestParameters] for more info on different bodies.
165178 dynamic Function (A1 , A2 , A3 , A4 , A5 ) body, {
179+ /// Provide a custom description builder which will build the description for all the test values test executed.
180+ CustomDescriptionBuilder ? customDescriptionBuilder,
166181 dynamic Function ()? setUp,
167182
168183 /// Provide a tearDown function to the `group` test.
@@ -178,6 +193,7 @@ void parameterizedTest5<A1, A2, A3, A4, A5>(
178193 description,
179194 values,
180195 p5 (body),
196+ customDescriptionBuilder: customDescriptionBuilder,
181197 setUp: setUp,
182198 tearDown: tearDown,
183199 testOn: testOn,
@@ -200,6 +216,8 @@ void parameterizedTest6<A1, A2, A3, A4, A5, A6>(
200216 /// The test body which is executed for each test value.
201217 /// See [TestParameters] for more info on different bodies.
202218 dynamic Function (A1 , A2 , A3 , A4 , A5 , A6 ) body, {
219+ /// Provide a custom description builder which will build the description for all the test values test executed.
220+ CustomDescriptionBuilder ? customDescriptionBuilder,
203221 dynamic Function ()? setUp,
204222
205223 /// Provide a tearDown function to the `group` test.
@@ -215,6 +233,7 @@ void parameterizedTest6<A1, A2, A3, A4, A5, A6>(
215233 description,
216234 values,
217235 p6 (body),
236+ customDescriptionBuilder: customDescriptionBuilder,
218237 setUp: setUp,
219238 tearDown: tearDown,
220239 testOn: testOn,
@@ -237,6 +256,8 @@ void parameterizedTest7<A1, A2, A3, A4, A5, A6, A7>(
237256 /// The test body which is executed for each test value.
238257 /// See [TestParameters] for more info on different bodies.
239258 dynamic Function (A1 , A2 , A3 , A4 , A5 , A6 , A7 ) body, {
259+ /// Provide a custom description builder which will build the description for all the test values test executed.
260+ CustomDescriptionBuilder ? customDescriptionBuilder,
240261 dynamic Function ()? setUp,
241262
242263 /// Provide a tearDown function to the `group` test.
@@ -252,6 +273,7 @@ void parameterizedTest7<A1, A2, A3, A4, A5, A6, A7>(
252273 description,
253274 values,
254275 p7 (body),
276+ customDescriptionBuilder: customDescriptionBuilder,
255277 setUp: setUp,
256278 tearDown: tearDown,
257279 testOn: testOn,
@@ -274,6 +296,8 @@ void parameterizedTest8<A1, A2, A3, A4, A5, A6, A7, A8>(
274296 /// The test body which is executed for each test value.
275297 /// See [TestParameters] for more info on different bodies.
276298 dynamic Function (A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 ) body, {
299+ /// Provide a custom description builder which will build the description for all the test values test executed.
300+ CustomDescriptionBuilder ? customDescriptionBuilder,
277301 dynamic Function ()? setUp,
278302
279303 /// Provide a tearDown function to the `group` test.
@@ -289,6 +313,7 @@ void parameterizedTest8<A1, A2, A3, A4, A5, A6, A7, A8>(
289313 description,
290314 values,
291315 p8 (body),
316+ customDescriptionBuilder: customDescriptionBuilder,
292317 setUp: setUp,
293318 tearDown: tearDown,
294319 testOn: testOn,
@@ -311,6 +336,8 @@ void parameterizedTest9<A1, A2, A3, A4, A5, A6, A7, A8, A9>(
311336 /// The test body which is executed for each test value.
312337 /// See [TestParameters] for more info on different bodies.
313338 dynamic Function (A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9 ) body, {
339+ /// Provide a custom description builder which will build the description for all the test values test executed.
340+ CustomDescriptionBuilder ? customDescriptionBuilder,
314341 dynamic Function ()? setUp,
315342
316343 /// Provide a tearDown function to the `group` test.
@@ -326,6 +353,7 @@ void parameterizedTest9<A1, A2, A3, A4, A5, A6, A7, A8, A9>(
326353 description,
327354 values,
328355 p9 (body),
356+ customDescriptionBuilder: customDescriptionBuilder,
329357 setUp: setUp,
330358 tearDown: tearDown,
331359 testOn: testOn,
@@ -348,6 +376,8 @@ void parameterizedTest10<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10>(
348376 /// The test body which is executed for each test value.
349377 /// See [TestParameters] for more info on different bodies.
350378 dynamic Function (A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9 , A10 ) body, {
379+ /// Provide a custom description builder which will build the description for all the test values test executed.
380+ CustomDescriptionBuilder ? customDescriptionBuilder,
351381 dynamic Function ()? setUp,
352382
353383 /// Provide a tearDown function to the `group` test.
@@ -363,6 +393,7 @@ void parameterizedTest10<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10>(
363393 description,
364394 values,
365395 p10 (body),
396+ customDescriptionBuilder: customDescriptionBuilder,
366397 setUp: setUp,
367398 tearDown: tearDown,
368399 testOn: testOn,
0 commit comments