flutter/packages/flutter_tools/test/integration.shard
Shi-Hao Hong fd22fc3e35
[gen_l10n] Synthetic package generation by default (#62395)
* synthetic packages by default in gen_l10n tool

* Refactor default path for synthetic package

* Remove unused import

* Code cleanup

* Further improvements to help text

* Refactor synthetic package path

* Remove newlines

* Test cleanup

* clean up logic in inputs and outputs list function

* Update l10n.yaml usage

* only add option if value is non-null

* Update stocks app as proof of concept for synthetic package usage

* Address nits

* print pubspec contents

* add print statements

* Do not allow null value for useSyntheticPackage

* +

* +

* +

* +

* Cleanup

* Add test

* Fix text

* Dont parse pubspec directly

* Test using context

* WIP: generate synthetic packages on pub get -- needs tests

* Allow null value

* Update null handling

* Refactor to properly handle null case

* Fix yamlMap condition

* Fix yaml node for real

* WIP: struggling to write tests

* WIP - take absolute path as an option

* Add tests

* Use environment project directory for synthetic package generation pathway

* Fix typo

* Improve help text

* Update defaults

* Remove unauthorized path import

* Fix pathing issues at synthetic package generation

* Fix typo in test

* Use path.join so projectDir matches up based on OS

* Fix Windows pathing in test

* Remove unnecessary replaceApp code for projectDir.path

* Use globals.fs.currentDirectory.path in resident_runner_test.dart

* Fix merge conflict

* Add test to ensure that synthetic package is generated on pub get

* Fix resident_runner_test.dart tests

* Fix tests

* Use package:file instead of dart:io

* WIP - exploration

* Remove synthetic package use from stocks example

* Update integration test to not use synthetic packages

* Remove trailing whitespace

* flutter pub get runs synth package generation

* Remove more print statements

* Add license header

* WIP - minimally working pub.get

* Use own MockBuildSystem

* Modify test and implementation to be a little cleaner

* Fix flutter pub get invocation

* Use synthetic packages in stocks app

* Revert "Use synthetic packages in stocks app"

This reverts commit 45bf24903c.

* Add environment and buildSystem params to flutter test

* Address code review feedback

* +

* Isolate codegen into its own API

* Fix imports

* Slight refactor

* Add one more test for no l10n.yaml file

* Remove unneeded mock class and import in pub_get_test.dart

* More code review feedback

* Remove unnecessary imports

* Remove `return await`s that I missed

* use arrow functions instead
2020-08-31 13:19:41 +08:00
..
test_data [gen_l10n] Synthetic package generation by default (#62395) 2020-08-31 13:19:41 +08:00
analyze_size_test.dart [flutter_tools] support code size tooling on iOS, linux, windows, macOS, and Android on Windows (#63610) 2020-08-25 10:00:24 -07:00
background_isolate_test.dart [flutter_tools] reland: Update background isolates when performing hot reload/restart (#52479) 2020-03-12 12:48:05 -07:00
command_output_test.dart [flutter_tools] add flutterRoot field to JSON machine output (#62053) 2020-07-29 08:16:04 -07:00
coverage_collection_test.dart [flutter_tools] support machine and coverage together but for real (#54692) 2020-04-13 19:00:02 -07:00
daemon_mode_test.dart [flutter_tools] remove zone level overrides of verbose and daemon logging (#57448) 2020-06-04 16:35:36 -07:00
debugger_stepping_test.dart License update (#45373) 2019-11-27 15:04:02 -08:00
debugger_stepping_web_test.dart There's a bug filed about this now, so update comment. (#62892) 2020-08-05 15:01:21 -07:00
downgrade_upgrade_integration_test.dart [flutter_tools] Delete system temp entries on fatal signals (#55513) 2020-05-14 14:27:02 -07:00
expression_evaluation_test.dart Convert expression evaluation exceptions to errors (#54916) 2020-04-17 10:40:02 -07:00
expression_evaluation_web_test.dart Enabled expression evaluation by default (#59826) 2020-06-19 15:23:03 -07:00
flutter_attach_test.dart Reland "Add support for Dart Development Service (DDS) in Flutter Tools (#61276)" (#62147) 2020-07-29 10:05:40 -07:00
flutter_gen_test.dart [flutter_tools] generate a synthetic flutter_gen package on pub get (#61261) 2020-07-15 10:12:52 -07:00
flutter_run_test.dart [flutter_tools] Ensure that global variables are easily identifiable (#47398) 2020-01-06 11:04:20 -08:00
flutter_run_with_error_test.dart Reland "Add support for Dart Development Service (DDS) in Flutter Tools (#61276)" (#62147) 2020-07-29 10:05:40 -07:00
gen_l10n_test.dart Disable the deferred loading variant of gen_l10n_test (#61912) 2020-07-21 02:18:29 -07:00
hot_reload_test.dart [flutter_tools] deflake fastReassemble test (#62152) 2020-07-24 15:17:39 -07:00
lifetime_test.dart Add punctuation for unterminated sentences in doc comments (#62755) 2020-08-06 19:18:52 -04:00
plist_parser_test.dart [flutter_tools] last pass on general.shard unit tests (#60263) 2020-06-26 13:36:06 -07:00
README.md Some minor cleanup for flutter_tools (#36569) 2019-07-24 10:58:09 -07:00
stateless_stateful_hot_reload_test.dart [flutter] Allow hot reload replacements of Stateless/Stateful Widget (#48932) 2020-01-30 07:58:03 -08:00
template_manifest_test.dart Add punctuation for unterminated sentences in doc comments (#62755) 2020-08-06 19:18:52 -04:00
test_driver.dart Reland "Add support for Dart Development Service (DDS) in Flutter Tools (#61276)" (#62147) 2020-07-29 10:05:40 -07:00
test_utils.dart [flutter] Allow hot reload replacements of Stateless/Stateful Widget (#48932) 2020-01-30 07:58:03 -08:00
unit_coverage_test.dart [flutter_tools] check in script for generating per library unit coverage (#61996) 2020-07-22 18:40:12 -07:00
vmservice_integration_test.dart Revert "Reland "Re-enable the Dart Development Service (DDS) (#64671)" (#64802)" (#64845) 2020-08-28 18:02:15 -07:00
web_run_test.dart [flutter_tools] cleanups to web runner functionality (#61178) 2020-07-13 15:12:46 -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.