@@ -2,6 +2,7 @@ import 'package:meta/meta.dart';
2
2
import 'package:test/test.dart' ;
3
3
4
4
import '../parameterized_test.dart' ;
5
+ import 'test_options/value_with_test_options.dart' ;
5
6
6
7
/// Parameterized test with 1 input arguments. See [parameterizedTest] for more info.
7
8
@isTestGroup
@@ -15,6 +16,8 @@ void parameterizedTest1<A1>(
15
16
/// The test body which is executed for each test value.
16
17
/// See [TestParameters] for more info on different bodies.
17
18
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,
18
21
dynamic Function ()? setUp,
19
22
20
23
/// Provide a tearDown function to the `group` test.
@@ -30,6 +33,7 @@ void parameterizedTest1<A1>(
30
33
description,
31
34
values,
32
35
p1 (body),
36
+ customDescriptionBuilder: customDescriptionBuilder,
33
37
setUp: setUp,
34
38
tearDown: tearDown,
35
39
testOn: testOn,
@@ -52,6 +56,8 @@ void parameterizedTest2<A1, A2>(
52
56
/// The test body which is executed for each test value.
53
57
/// See [TestParameters] for more info on different bodies.
54
58
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,
55
61
dynamic Function ()? setUp,
56
62
57
63
/// Provide a tearDown function to the `group` test.
@@ -67,6 +73,7 @@ void parameterizedTest2<A1, A2>(
67
73
description,
68
74
values,
69
75
p2 (body),
76
+ customDescriptionBuilder: customDescriptionBuilder,
70
77
setUp: setUp,
71
78
tearDown: tearDown,
72
79
testOn: testOn,
@@ -89,6 +96,8 @@ void parameterizedTest3<A1, A2, A3>(
89
96
/// The test body which is executed for each test value.
90
97
/// See [TestParameters] for more info on different bodies.
91
98
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,
92
101
dynamic Function ()? setUp,
93
102
94
103
/// Provide a tearDown function to the `group` test.
@@ -104,6 +113,7 @@ void parameterizedTest3<A1, A2, A3>(
104
113
description,
105
114
values,
106
115
p3 (body),
116
+ customDescriptionBuilder: customDescriptionBuilder,
107
117
setUp: setUp,
108
118
tearDown: tearDown,
109
119
testOn: testOn,
@@ -126,6 +136,8 @@ void parameterizedTest4<A1, A2, A3, A4>(
126
136
/// The test body which is executed for each test value.
127
137
/// See [TestParameters] for more info on different bodies.
128
138
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,
129
141
dynamic Function ()? setUp,
130
142
131
143
/// Provide a tearDown function to the `group` test.
@@ -141,6 +153,7 @@ void parameterizedTest4<A1, A2, A3, A4>(
141
153
description,
142
154
values,
143
155
p4 (body),
156
+ customDescriptionBuilder: customDescriptionBuilder,
144
157
setUp: setUp,
145
158
tearDown: tearDown,
146
159
testOn: testOn,
@@ -163,6 +176,8 @@ void parameterizedTest5<A1, A2, A3, A4, A5>(
163
176
/// The test body which is executed for each test value.
164
177
/// See [TestParameters] for more info on different bodies.
165
178
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,
166
181
dynamic Function ()? setUp,
167
182
168
183
/// Provide a tearDown function to the `group` test.
@@ -178,6 +193,7 @@ void parameterizedTest5<A1, A2, A3, A4, A5>(
178
193
description,
179
194
values,
180
195
p5 (body),
196
+ customDescriptionBuilder: customDescriptionBuilder,
181
197
setUp: setUp,
182
198
tearDown: tearDown,
183
199
testOn: testOn,
@@ -200,6 +216,8 @@ void parameterizedTest6<A1, A2, A3, A4, A5, A6>(
200
216
/// The test body which is executed for each test value.
201
217
/// See [TestParameters] for more info on different bodies.
202
218
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,
203
221
dynamic Function ()? setUp,
204
222
205
223
/// Provide a tearDown function to the `group` test.
@@ -215,6 +233,7 @@ void parameterizedTest6<A1, A2, A3, A4, A5, A6>(
215
233
description,
216
234
values,
217
235
p6 (body),
236
+ customDescriptionBuilder: customDescriptionBuilder,
218
237
setUp: setUp,
219
238
tearDown: tearDown,
220
239
testOn: testOn,
@@ -237,6 +256,8 @@ void parameterizedTest7<A1, A2, A3, A4, A5, A6, A7>(
237
256
/// The test body which is executed for each test value.
238
257
/// See [TestParameters] for more info on different bodies.
239
258
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,
240
261
dynamic Function ()? setUp,
241
262
242
263
/// Provide a tearDown function to the `group` test.
@@ -252,6 +273,7 @@ void parameterizedTest7<A1, A2, A3, A4, A5, A6, A7>(
252
273
description,
253
274
values,
254
275
p7 (body),
276
+ customDescriptionBuilder: customDescriptionBuilder,
255
277
setUp: setUp,
256
278
tearDown: tearDown,
257
279
testOn: testOn,
@@ -274,6 +296,8 @@ void parameterizedTest8<A1, A2, A3, A4, A5, A6, A7, A8>(
274
296
/// The test body which is executed for each test value.
275
297
/// See [TestParameters] for more info on different bodies.
276
298
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,
277
301
dynamic Function ()? setUp,
278
302
279
303
/// Provide a tearDown function to the `group` test.
@@ -289,6 +313,7 @@ void parameterizedTest8<A1, A2, A3, A4, A5, A6, A7, A8>(
289
313
description,
290
314
values,
291
315
p8 (body),
316
+ customDescriptionBuilder: customDescriptionBuilder,
292
317
setUp: setUp,
293
318
tearDown: tearDown,
294
319
testOn: testOn,
@@ -311,6 +336,8 @@ void parameterizedTest9<A1, A2, A3, A4, A5, A6, A7, A8, A9>(
311
336
/// The test body which is executed for each test value.
312
337
/// See [TestParameters] for more info on different bodies.
313
338
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,
314
341
dynamic Function ()? setUp,
315
342
316
343
/// Provide a tearDown function to the `group` test.
@@ -326,6 +353,7 @@ void parameterizedTest9<A1, A2, A3, A4, A5, A6, A7, A8, A9>(
326
353
description,
327
354
values,
328
355
p9 (body),
356
+ customDescriptionBuilder: customDescriptionBuilder,
329
357
setUp: setUp,
330
358
tearDown: tearDown,
331
359
testOn: testOn,
@@ -348,6 +376,8 @@ void parameterizedTest10<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10>(
348
376
/// The test body which is executed for each test value.
349
377
/// See [TestParameters] for more info on different bodies.
350
378
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,
351
381
dynamic Function ()? setUp,
352
382
353
383
/// Provide a tearDown function to the `group` test.
@@ -363,6 +393,7 @@ void parameterizedTest10<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10>(
363
393
description,
364
394
values,
365
395
p10 (body),
396
+ customDescriptionBuilder: customDescriptionBuilder,
366
397
setUp: setUp,
367
398
tearDown: tearDown,
368
399
testOn: testOn,
0 commit comments