Skip to content

Sample driver test working on Fuchsia#45652

Merged
iskakaushik merged 3 commits intoflutter:masterfrom
iskakaushik:sample-test-working
Dec 2, 2019
Merged

Sample driver test working on Fuchsia#45652
iskakaushik merged 3 commits intoflutter:masterfrom
iskakaushik:sample-test-working

Conversation

@iskakaushik
Copy link
Copy Markdown
Contributor

No description provided.

@fluttergithubbot fluttergithubbot added d: examples Sample code and demos c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels. labels Nov 27, 2019
Also added an example driver test that can run on Fuchsia devices.

Fixes: flutter#45624
@iskakaushik iskakaushik changed the title [WIP] Sample driver test working on Fuchsia [WIP]Sample driver test working on Fuchsia Dec 2, 2019
@iskakaushik iskakaushik changed the title [WIP]Sample driver test working on Fuchsia Sample driver test working on Fuchsia Dec 2, 2019
@iskakaushik
Copy link
Copy Markdown
Contributor Author

The scroll_perf_test doesn't yet work on Fuchsia due to the differences in tracing mechanism. So I added another sample test to serve as an example for the devicelab work to enable running Fuchsia tests.

Instructions to run this test

Prerequisites

  1. Have a functional flutter/flutter repo. You should be able to run driver tests on say an Android device.

Steps

  1. Cache the Fuchsia artifacts needed by the Flutter tool

    1. flutter precache --fuchsia
    2. flutter precache --flutter_runner
  2. Setup your Fuchsia tree to serve tiles and have the ssh keys ready

    1. You probably don’t need all of these options in fx-set but this is what I had: fx set workstation.chromebook-x64 --with-base //garnet/packages:default --with-base //bundles:tools
    2. fx clean-build
    3. fx serve (This should give you the device name, save it to FUCHSIA_DEVICE_NAME)
    4. export FUCHSIA_BUILD_DIR=$FUCHSIA_DIR/out/default
  3. Go to the folder of an existing driver test: $FLUTTER_FRAMEWORK_DIR/examples/stocks

  4. Apply the patch at Sample driver test working on Fuchsia #45652 (I will try to get it landed soon)

  5. Run flutter drive -d $FUCHSIA_DEVICE_NAME --target=test_driver/stock_view.dart

@iskakaushik iskakaushik merged commit 3994872 into flutter:master Dec 2, 2019
@dnfield
Copy link
Copy Markdown
Contributor

dnfield commented Dec 2, 2019

It's not clear to me why flutter-build was green for this... /cc @digiter @keyonghan @godofredoc

@iskakaushik iskakaushik deleted the sample-test-working branch December 2, 2019 21:18
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt. d: examples Sample code and demos tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants