Commit 4e70321
authored
Fix integration test failures caused by render overflow errors (#6664)
* Fix integration test failures caused by render overflow errors
Any FlutterError reported during a frame (typically "RenderFlex
overflowed") fails the on-device testWidgets body, which the exit-code
check surfaces as a teardown error on the last test of the module even
though all host-side assertions and goldens pass.
Test harness:
- FletTestApp now captures Flutter test process output and dumps its
tail when the process exits non-zero, so CI failures show the reason.
- host_test.dart hooks reportTestException to print the exception and
stack (flutter test otherwise never prints it) and delays tearDownAll
so end-of-run reports are not lost when the process exits.
- Screenshot captures are hosted in a hidden-scrollbar scrollable
column, so content taller than the test window scrolls instead of
overflowing the page; captures and goldens are unaffected.
Tests and examples:
- test_spinkit: render all spinners inside a scrollable column.
- data_table/sortable_and_selectable example: make the page scrollable;
the table is 2px taller than the default 800x600 window and drew an
overflow on the first frame.
- Regenerate stale client/pubspec.lock.
CI: temporarily run only the affected tests; restore the full suite
list before merging.
* Restore full macOS integration test matrix1 parent 336ed90 commit 4e70321
5 files changed
Lines changed: 139 additions & 20 deletions
File tree
- client
- packages/flet_integration_test/lib/src
- sdk/python
- examples/controls/material/data_table/sortable_and_selectable
- packages/flet
- integration_tests/extensions/spinkit
- src/flet/testing
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
433 | 440 | | |
434 | 441 | | |
435 | 442 | | |
| |||
1363 | 1370 | | |
1364 | 1371 | | |
1365 | 1372 | | |
1366 | | - | |
| 1373 | + | |
1367 | 1374 | | |
1368 | 1375 | | |
1369 | | - | |
| 1376 | + | |
1370 | 1377 | | |
1371 | 1378 | | |
1372 | | - | |
| 1379 | + | |
1373 | 1380 | | |
1374 | 1381 | | |
1375 | 1382 | | |
| |||
1387 | 1394 | | |
1388 | 1395 | | |
1389 | 1396 | | |
1390 | | - | |
| 1397 | + | |
1391 | 1398 | | |
1392 | 1399 | | |
1393 | | - | |
| 1400 | + | |
1394 | 1401 | | |
1395 | 1402 | | |
1396 | | - | |
| 1403 | + | |
1397 | 1404 | | |
1398 | 1405 | | |
1399 | 1406 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
28 | 48 | | |
29 | 49 | | |
30 | 50 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
145 | 154 | | |
146 | 155 | | |
147 | 156 | | |
| |||
Lines changed: 92 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
| |||
256 | 258 | | |
257 | 259 | | |
258 | 260 | | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
263 | 264 | | |
264 | 265 | | |
265 | | - | |
266 | | - | |
267 | | - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
| |||
320 | 321 | | |
321 | 322 | | |
322 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
323 | 329 | | |
324 | 330 | | |
325 | 331 | | |
| |||
331 | 337 | | |
332 | 338 | | |
333 | 339 | | |
| 340 | + | |
334 | 341 | | |
335 | 342 | | |
336 | 343 | | |
337 | 344 | | |
338 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
339 | 388 | | |
340 | 389 | | |
341 | 390 | | |
| |||
383 | 432 | | |
384 | 433 | | |
385 | 434 | | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
386 | 441 | | |
387 | 442 | | |
388 | 443 | | |
| |||
392 | 447 | | |
393 | 448 | | |
394 | 449 | | |
| 450 | + | |
395 | 451 | | |
396 | 452 | | |
397 | 453 | | |
| |||
420 | 476 | | |
421 | 477 | | |
422 | 478 | | |
423 | | - | |
424 | | - | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
425 | 483 | | |
426 | 484 | | |
427 | 485 | | |
| |||
470 | 528 | | |
471 | 529 | | |
472 | 530 | | |
473 | | - | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
474 | 536 | | |
475 | 537 | | |
476 | 538 | | |
| |||
480 | 542 | | |
481 | 543 | | |
482 | 544 | | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
483 | 563 | | |
484 | 564 | | |
485 | 565 | | |
| |||
849 | 929 | | |
850 | 930 | | |
851 | 931 | | |
| 932 | + | |
| 933 | + | |
0 commit comments