flutter/packages/flutter_tools/test/integration.shard
Jonah Williams cb67513f29
[flutter_tools] Reland: simplify pub cache logic (#67589)
There have been some more additional reports of a missing 'package:characters' import after upgrading flutter. This has me concerned that our pub caching logic is incorrect. Instead of the tool attempting to guess when pub should be run, always delegate to pub.

Also takes an opportunity to fix the kernel snapshot depending on the .packages or package_config. Due to the generated: date field this causes extra rebuilds. Instead when pub get is run, write out an additional file with just the package contents and version.

Fixes #66777
Fixes #65723
2020-10-23 10:00:56 -07:00
..
test_data [flutter_tools] pretty print hot reload rejection error (#66701) 2020-10-09 15:44:52 -07:00
analyze_size_test.dart Revert "[flutter_tools] refactor drive launch into separate service, split by mobile+desktop and web (#68451)" (#68845) 2020-10-22 19:39:33 -07:00
background_isolate_test.dart [flutter_tools] standardize patterns for integration.shard (#64980) 2020-09-08 15:56:00 -07:00
build_ios_config_only_test.dart [flutter_tools] make local engine integration testing easier (#65802) 2020-09-15 13:32:02 -07:00
command_output_test.dart [flutter_tools] do not allow attaching in release mode (#68071) 2020-10-13 21:29:23 -07:00
coverage_collection_test.dart [flutter_tools] standardize patterns for integration.shard (#64980) 2020-09-08 15:56:00 -07:00
daemon_mode_test.dart [flutter_tools] make local engine integration testing easier (#65802) 2020-09-15 13:32:02 -07:00
debugger_stepping_test.dart [flutter_tools] standardize patterns for integration.shard (#64980) 2020-09-08 15:56:00 -07:00
debugger_stepping_web_test.dart [flutter_tools] standardize patterns for integration.shard (#64980) 2020-09-08 15:56:00 -07:00
deprecated_gradle_settings_test.dart [flutter_tools] port deprecated settings test to flutter integration shard (#65806) 2020-09-15 10:55:07 -07:00
downgrade_upgrade_integration_test.dart [flutter_tools] Reland: simplify pub cache logic (#67589) 2020-10-23 10:00:56 -07:00
expression_evaluation_test.dart Remove unused 'dart:async' imports. (#65568) 2020-09-16 14:14:06 -07:00
expression_evaluation_web_test.dart Remove unused 'dart:async' imports. (#65568) 2020-09-16 14:14:06 -07:00
flutter_attach_test.dart [flutter_tools] standardize patterns for integration.shard (#64980) 2020-09-08 15:56:00 -07:00
flutter_gen_test.dart [flutter_tools] standardize patterns for integration.shard (#64980) 2020-09-08 15:56:00 -07:00
flutter_immediately_exit_test.dart Revert "enable unnecessary_string_escapes and use_raw_strings (#68302)" (#68714) 2020-10-21 08:16:13 -07:00
flutter_run_test.dart [flutter_tools] standardize patterns for integration.shard (#64980) 2020-09-08 15:56:00 -07:00
flutter_run_with_error_test.dart [flutter_tools] standardize patterns for integration.shard (#64980) 2020-09-08 15:56:00 -07:00
forbidden_imports_test.dart [flutter_tools] do not require a dependency on devtools server (#66842) 2020-09-29 18:15:56 -07:00
gen_l10n_test.dart [flutter_tools] standardize patterns for integration.shard (#64980) 2020-09-08 15:56:00 -07:00
hot_reload_errors_test.dart [flutter_tools] pretty print hot reload rejection error (#66701) 2020-10-09 15:44:52 -07:00
hot_reload_test.dart [flutter_tools] connect widget cache from frontend_server (#65951) 2020-09-19 11:02:04 -07:00
hot_reload_with_asset_test.dart [flutter_tools] hot reload/restart update for asset manager change (#66742) 2020-10-09 12:25:15 -07:00
lifetime_test.dart Remove unused 'dart:async' imports. (#65568) 2020-09-16 14:14:06 -07:00
plist_parser_test.dart [flutter_tools] standardize patterns for integration.shard (#64980) 2020-09-08 15:56:00 -07:00
README.md Some minor cleanup for flutter_tools (#36569) 2019-07-24 10:58:09 -07:00
single_widget_reload_test.dart [flutter_tools] connect widget cache from frontend_server (#65951) 2020-09-19 11:02:04 -07:00
stateless_stateful_hot_reload_test.dart [flutter_tools] standardize patterns for integration.shard (#64980) 2020-09-08 15:56:00 -07:00
template_manifest_test.dart [flutter_tools] standardize patterns for integration.shard (#64980) 2020-09-08 15:56:00 -07:00
test_driver.dart [flutter_tools] pretty print hot reload rejection error (#66701) 2020-10-09 15:44:52 -07:00
test_test.dart [flutter_tools] update build rules to depend on subset of package_config contents (#67165) 2020-10-07 08:46:11 -07:00
test_utils.dart Remove unused 'dart:async' imports. (#65568) 2020-09-16 14:14:06 -07:00
unit_coverage_test.dart [flutter_tools] standardize patterns for integration.shard (#64980) 2020-09-08 15:56:00 -07:00
vmservice_integration_test.dart Reland "Re-enable the Dart Development Service (DDS) (#64671)" (#65873) 2020-09-16 16:27:42 -07:00
web_run_test.dart [flutter_tools] standardize patterns for integration.shard (#64980) 2020-09-08 15:56:00 -07:00
xcode_backend_test.dart Add observatory Bonjour service to built iOS Info.plist bundle (#65138) 2020-09-02 18:47:56 -07:00

Integration tests

These tests are not hermetic, and use the actual Flutter SDK. While they don't require actual devices, they run flutter_tester to test Dart VM and Flutter integration.

Use this command to run (from the flutter_tools directory):

../../bin/cache/dart-sdk/bin/pub run test test/integration.shard

These tests are expensive to run and do not give meaningful coverage information for the flutter tool (since they are black-box tests that run the tool as a subprocess, rather than being unit tests). For this reason, they are in a separate shard when running on continuous integration and are not run when calculating coverage.