• Ian Hickson's avatar
    Make it possible to run tests live on a device (#3936) · 32527017
    Ian Hickson authored
    This makes it possible to substitute 'flutter run' for 'flutter test'
    and actually watch a test run on a device.
    
    For any test that depends on flutter_test:
    
    1. Remove any import of 'package:test/test.dart'.
    
    2. Replace `testWidgets('...', (WidgetTester tester) {`
          with `testWidgets('...', (WidgetTester tester) async {`
    
    3. Add an "await" in front of calls to any of the following:
        * tap()
        * tapAt()
        * fling()
        * flingFrom()
        * scroll()
        * scrollAt()
        * pump()
        * pumpWidget()
    
    4. Replace any calls to `tester.flushMicrotasks()` with calls to
       `await tester.idle()`.
    
    There's a guarding API that you can use, if you have particularly
    complicated tests, to get better error messages. Search for
    TestAsyncUtils.
    32527017
Name
Last commit
Last update
..
align_test.dart Loading commit data...
animated_container_test.dart Loading commit data...
animated_positioned_test.dart Loading commit data...
aspect_ratio_test.dart Loading commit data...
asset_vendor_test.dart Loading commit data...
banner_test.dart Loading commit data...
block_test.dart Loading commit data...
bottom_sheet_rebuild_test.dart Loading commit data...
bottom_sheet_test.dart Loading commit data...
box_decoration_test.dart Loading commit data...
build_scope_test.dart Loading commit data...
buttons_test.dart Loading commit data...
center_test.dart Loading commit data...
clip_test.dart Loading commit data...
coordinates_test.dart Loading commit data...
custom_multi_child_layout_test.dart Loading commit data...
custom_one_child_layout_test.dart Loading commit data...
custom_paint_test.dart Loading commit data...
date_picker_test_disabled.dart Loading commit data...
dismissable_test.dart Loading commit data...
draggable_test.dart Loading commit data...
drawer_test.dart Loading commit data...
duplicate_key_test.dart Loading commit data...
flex_test.dart Loading commit data...
flow_test.dart Loading commit data...
focus_test.dart Loading commit data...
form_test.dart Loading commit data...
fractionally_sized_box_test.dart Loading commit data...
gesture_detector_test.dart Loading commit data...
heroes_test.dart Loading commit data...
hyperlink_test.dart Loading commit data...
icon_test.dart Loading commit data...
image_test.dart Loading commit data...
independent_widget_layout_test.dart Loading commit data...
inherited_test.dart Loading commit data...
init_state_test.dart Loading commit data...
input_test.dart Loading commit data...
layout_builder_test.dart Loading commit data...
lazy_block_test.dart Loading commit data...
lazy_block_viewport_test.dart Loading commit data...
listener_test.dart Loading commit data...
media_query_test.dart Loading commit data...
modal_barrier_test.dart Loading commit data...
multichild_test.dart Loading commit data...
navigator_test.dart Loading commit data...
overflow_box_test.dart Loading commit data...
page_forward_transitions_test.dart Loading commit data...
page_transitions_test.dart Loading commit data...
pageable_list_test.dart Loading commit data...
parent_data_test.dart Loading commit data...
positioned_test.dart Loading commit data...
raw_keyboard_listener_test.dart Loading commit data...
remember_scroll_position_test.dart Loading commit data...
render_object_widget_test.dart Loading commit data...
reparent_state_test.dart Loading commit data...
rotated_box_test.dart Loading commit data...
routes_test.dart Loading commit data...
scroll_behavior_test.dart Loading commit data...
scroll_events_test.dart Loading commit data...
scroll_interaction_test.dart Loading commit data...
scrollable_lazy_list_test.dart Loading commit data...
scrollable_list_hit_testing_test.dart Loading commit data...
scrollable_list_horizontal_test.dart Loading commit data...
scrollable_list_vertical_test.dart Loading commit data...
scrollable_list_with_inherited_test.dart Loading commit data...
semantics_1_test.dart Loading commit data...
semantics_2_test.dart Loading commit data...
semantics_3_test.dart Loading commit data...
semantics_4_test.dart Loading commit data...
semantics_5_test.dart Loading commit data...
semantics_6_test.dart Loading commit data...
semantics_7_test.dart Loading commit data...
semantics_8_test.dart Loading commit data...
set_state_2_test.dart Loading commit data...
set_state_3_test.dart Loading commit data...
set_state_test.dart Loading commit data...
shader_mask_test.dart Loading commit data...
snap_scrolling_test.dart Loading commit data...
stack_test.dart Loading commit data...
stateful_component_test.dart Loading commit data...
stateful_components_test.dart Loading commit data...
syncing_test.dart Loading commit data...
table_test.dart Loading commit data...
test_semantics.dart Loading commit data...
test_widgets.dart Loading commit data...
transform_test.dart Loading commit data...
two_level_list_test.dart Loading commit data...