- 13 Jul, 2022 1 commit
-
-
jensjoha authored
Speedup coverage test runs by using (new) coverage handle with caching. On a `flutter test --coverage` run on `packages/flutter` the runtime goes from ~828 seconds to ~617 seconds, or a ~25% reduction in time spent (testing without coverage takes ~236 seconds so the overhead of `--coverage` in this case goes from ~592 seconds to ~381 seconds, or a ~35% reduction).
-
- 24 Jun, 2022 1 commit
-
-
Gustl22 authored
-
- 18 Jun, 2022 1 commit
-
-
Jonah Williams authored
-
- 15 Jun, 2022 1 commit
-
-
Jonah Williams authored
-
- 31 May, 2022 1 commit
-
-
Chris Bracken authored
In https://github.com/flutter/flutter/pull/103771, we rolled dependencies in Flutter, which triggered an update of package:coverage to v1.3.1. The new version includes https://github.com/dart-lang/coverage/pull/370 in which two deprecations landed: * The `Resolver` default constructor was deprecated and replaced with the `Resolver.create` static factory method, which unfortunately happens to be async. * The `packagesPath` parameter to `HitMap.parseJson`, which takes the path to the `.packages` file of the package for which coverage is to be collected, was deprecated. This parameter was replaced with `packagePath` in https://github.com/dart-lang/coverage/pull/370 which was part of the overall deprecation of the .packages file in Dart itself https://github.com/dart-lang/sdk/issues/48272. The overall goal being that end-user code shouldn't need to know about implementation details such as whether dependency information is stored in a .packages file or a package_info.json file, but rather use the package_config package to obtain the package metadata and perform other functions such as resolving its dependencies to filesystem paths. packagesPath was replaced by packagePath, which takes the path to the package directory itself. Internally, package:coverage then uses package_config to do the rest of the package/script URI resolution to filesystem paths. This migrates off the deprecated `packagesPath` parameter to the replacement `packagePath` paramter. Issue: https://github.com/flutter/flutter/issues/103830
-
- 19 May, 2022 1 commit
-
-
Liam Appelbe authored
* Use libraryFilters flag to speed up coverage collection * Allow libraryNames to be null * Unconditionally enable the reportLines flag * Fix analysis errors
-
- 14 May, 2022 2 commits
-
-
Chris Bracken authored
Roll dependendencies This rolls depdendencies to latest using flutter update-packages --force-upgrade This change includes three code changes: * Removes charcode from the dependencies allowlist since it no longer appears in the transitive closure of dependencies of the flutter, flutter_test, flutter_driver, flutter_localizations, and integration_test packages. * Uses Resolver.create instead of the deprecated Resolver constructor. The default Resolver constructor has been deprecated in favour of the static Resolver.create() factory function, which unfortunately happens to be async. Propagated the async-ness up the chain. This change was partially reverted and the deprecation ignored in this patch until package:coverage can be rolled internally at Google. * Eliminates the use of the deprecated packagesPath parameter to HitMap.parseJson. This parameter was deprecated and replaced with packagePath in https://github.com/dart-lang/coverage/pull/370 which was part of the overall deprecation of the .packages file in Dart itself https://github.com/dart-lang/sdk/issues/48272. The overall goal being that end-user code shouldn't need to know about implementation details such as whether dependency information is stored in a .packages file or a package_info.json file, but rather use the package_config package to obtain the package metadata and perform other functions such as resolving its dependencies to filesystem paths. packagesPath was replaced by packagePath, which takes the path to the package directory itself. Internally, package:coverage then uses package_config to do the rest of the package/script URI resolution to filesystem paths. This change was partially reverted and the deprecation ignored in this patch until package:coverage can be rolled internally at Google. This is a pre-update prior to updating flutter_template_images in https://github.com/flutter/flutter/pull/103739 Issue: https://github.com/flutter/flutter/issues/103371 Issue: https://github.com/flutter/flutter/issues/103775 Issue: https://github.com/flutter/flutter/issues/103830 When re-applying the partially-reverted changes to code coverage, we'll need to patch host_entrypoint.dart internally to await the Future that we'll be returning rather than a non-async value.
-
Jonah Williams authored
-
- 07 May, 2022 1 commit
-
-
Jenn Magder authored
-
- 27 Apr, 2022 1 commit
-
-
Alexandre Ardhuin authored
-
- 13 Apr, 2022 1 commit
-
-
Yegor authored
-
- 17 Mar, 2022 1 commit
-
-
Liam Appelbe authored
-
- 18 Feb, 2022 1 commit
-
-
Ben Konyi authored
-
- 15 Feb, 2022 1 commit
-
-
Ben Konyi authored
* Update flutter_tools to look for new VM service message The Dart SDK will soon move away from the current Observatory message: "Observatory listening on ..." To a new message that no longer references Observatory: "Dart VM Service listening on ..." This change updates all tests with mocks to check for the new message and also adds support for the new message in ProtocolDiscovery. See https://github.com/dart-lang/sdk/issues/46756 * Fix some parsing locations * Fix analysis failures * Update message * Remove extra comment * Update message * Add globals prefix
-
- 02 Feb, 2022 1 commit
-
-
Lau Ching Jun authored
-
- 14 Jan, 2022 1 commit
-
-
Jenn Magder authored
-
- 24 Nov, 2021 1 commit
-
-
Nate Bosch authored
-
- 10 Nov, 2021 1 commit
-
-
Nate Bosch authored
-
- 02 Nov, 2021 1 commit
-
-
Jenn Magder authored
-
- 27 Oct, 2021 1 commit
-
-
Jenn Magder authored
-
- 21 Oct, 2021 1 commit
-
-
Yegor authored
-
- 08 Oct, 2021 3 commits
-
-
Ian Hickson authored
-
Zachary Anderson authored
This reverts commit 5fd259be.
-
Ian Hickson authored
-
- 01 Oct, 2021 2 commits
-
-
Ian Hickson authored
-
stuartmorgan authored
Building an application for a desktop platform that transitively included any Dart-based plugins (such as path_provider) broke `flutter test`, because its compilation was overriding the provided main (in this case, the test main) with `generated_main.dart` if it was present. This PR: - Changes the `flutter test` compilation path to update `generated_main.dart`, so that the tests will work, and will include any registered Dart plugins. - Makes using `generated_main.dart` during recompile opt-in, to try to reduce the chance of a similar bug happening with other codepaths in the future. Fixes https://github.com/flutter/flutter/issues/88794
-
- 18 Sep, 2021 1 commit
-
-
Jason Simmons authored
-
- 16 Sep, 2021 1 commit
-
-
Liam Appelbe authored
* Use the report lines flag * Handle major version bumps in the version check * Fix existing tests and add a new test
-
- 10 Sep, 2021 1 commit
-
-
Phil Quitslund authored
-
- 26 Aug, 2021 1 commit
-
-
Jenn Magder authored
-
- 23 Aug, 2021 1 commit
-
-
Jonah Williams authored
-
- 17 Aug, 2021 1 commit
-
-
Jonah Williams authored
-
- 15 Jun, 2021 1 commit
-
-
Jenn Magder authored
-
- 14 Jun, 2021 2 commits
-
-
Greg Spencer authored
This adds avoid_dynamic_calls to the list of lints, and fixes all instances where it was violated. Importantly, this lint is NOT turned on for flutter/packages/test, because those changes are happening in another PR: #84478
-
Lau Ching Jun authored
-
- 01 Jun, 2021 1 commit
-
-
Alexandre Ardhuin authored
-
- 27 May, 2021 1 commit
-
-
Jonah Williams authored
-
- 22 May, 2021 1 commit
-
-
Jenn Magder authored
-
- 18 May, 2021 1 commit
-
-
Jonah Williams authored
-
- 10 May, 2021 1 commit
-
-
Michael Goderbauer authored
-