commit | ad8928588e0b5a5221f77e675b3b08f286866798 | [log] [tgz] |
---|---|---|
author | Adam Barth <abarth@google.com> | Wed May 15 18:55:08 2024 +0000 |
committer | Adam Barth <abarth@google.com> | Wed May 15 18:55:08 2024 +0000 |
tree | f9bdd7d1ee7a7143653e6bd7fba19cc20534c50b | |
parent | 277e15c4a1404758f64b99daf45e27d749e8b0eb [diff] |
[feature] Run individual test cases We now show VS Code the individual test cases within each test binary, which lets the user run or debug them individually from the UI. Fixed: b/340669616 Change-Id: Ie4579251dfa4a54ef7f61379e549eb0222629917 Reviewed-on: https://fuchsia-review.googlesource.com/c/vscode-plugins/+/1048623 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Jacob Rutherford <jruthe@google.com>
Implements the commonly needed functionality for Fuchsia development.
Select a Fuchsia device using the Device Selector in the bottom toolbar:
Select “Show log for device name” from quick picker:
View the logs:
Select the “Testing” tab from the left navigation bar and view the list of tests in your current build configuration:
Click the “Run Test” or “Debug Test” button to run or debug the test. Double-click the test to jump to the BUILD.gn
that defines the test.
Select the “Run and Debug” tab from the left navigtaion bar and expand the “Fuchsia Components” panel to view the components running on the device:
Click the “Attach Debugger” button to attach the debugger to the component. Set a breakpoint by clicking to the left of a line of source code to stop the component on that line of code.
Click a component to show more information about that component.
The FFX tool path can be set under Settings > Extensions > Fuchsia SDK
. If this path is not set, the extension will automatically search for it at:
./tools/ffx
./.jiri_root/bin/ffx
Use of the Fuchsia core developer tools is subject to the Google Terms of Service. The Google Privacy Policy describes how data is handled in your use of this service.