Todd Volkert
ec7b46e30b
Add stack trace to exception logs in flutter_platform ( #16715 )
2018-04-18 12:09:16 -07:00
Todd Volkert
c7df2619d7
Run test harness finalizers in reverse order. ( #16664 )
...
Finalizers handle the restoration of state. In order to restore
the state correctly, they shouyld be run in LIFO order.
Fixes #16657
2018-04-17 07:38:30 -07:00
Mikkel Nygaard Ravn
10cf0cedad
Revert "Roll engine to 1bc0e1bb9a8db882a21086096cc2b1e0854312b7 ( #16643 )" ( #16661 )
2018-04-17 12:40:02 +02:00
Todd Volkert
dd32d1b179
Roll engine to 1bc0e1bb9a8db882a21086096cc2b1e0854312b7 ( #16643 )
...
* Roll engine to d6d4eec24c38bb06a9b1aef4e70c321d447ba762
Contains the following engine commits:
flutter/engine@1bc0e1b On windows, refer to Dart snapshot directly executable.
flutter/engine@cf6ca32 Revert "Roll Dart to fe606f890b0a311da802c78b0af414a3c2087a79"
flutter/engine@4b45a53 Only make ERROR and FATAL log levels visible by default.
flutter/engine@98f6c2d Fix shell launcher test (dart2 compliant and stop polling)
flutter/engine@75851f0 Roll Dart to fe606f890b0a311da802c78b0af414a3c2087a79
flutter/engine@9495a52 On iOS, try to use ES3, then fall back to ES2.
flutter/engine@d6d4eec Fix broken Linux build
flutter/engine@d15dc76 Fix broken Chromebot build
flutter/engine@c17a629 Breadcrumbs to the wiki
flutter/engine@4eaf2c2 Return raw (unencoded) bytes in Image.toByteData()
flutter/engine@d812a61 Roll src/third_party/skia/ e669bdfad..276886160 (9 commits)
flutter/engine@62aeab7 Call SkSurface::flush instead of getting a backend handle in vulkan_swapchain.
flutter/engine@f4ebb18 Roll src/third_party/skia/ 3462eb034..e669bdfad (54 commits)
flutter/engine@0b7d6be Re-land "do not pause rendering when android view loses focus"
flutter/engine@91dee59 If the rasterizer has a valid surface context, use that to create a snapshotting render target.
flutter/engine@570231b Specify the packages file path when running engine dart tests.
flutter/engine@0b9cef5 Minor update to README
flutter/engine@c386418 Promote line height in text style created from paragraph style
flutter/engine@4e0fbb6 If the test specifies a .dill file, dont make the engine interpret is as source.
flutter/engine@58e84c8 Re-land "Support multiple shells in a single process.
flutter/engine@37e5df0 Remove only use of SkPaint::kGenA8FromLCD
flutter/engine@b7358b3 libtxt: cache font families that are remapped to the default font family
flutter/engine@a530035 libtxt: fix leaks in Skia object reference counting
flutter/engine@0c74fc9 [fuchsia] Fix use-after-free
flutter/engine@b6d2dde [fuchsia] Fix build
flutter/engine@1dd1264 [async] Adapt to libasync API changes.
* Run test platform finalizers in reverse order to ensure that shell is shutdown before trying to delete any temporary files or directories. This fixes "Access Denied" error on Windows (see #16657 ).
2018-04-17 11:52:00 +02:00
Alexander Aprelev
e0cd42e4ad
Roll engine to 76cb311d9c33720dcd19274228b39ecdbad8d9af (with rolled dart) ( #16518 )
...
* Handle error count reported by frontend.
Extend compilation result from single string to a structure(string filename and integer error count).
* Use ?.
* Include engine roll with dart sdk roll.
* parse(onError) -> tryParse
* Make '?? throw' more readable and avoid issue with analyzer
* Fix test so it mocks compiler output including errors count
2018-04-12 16:28:01 -07:00
Ian Hickson
44fbf7463b
Minor code cleanup ( #16237 )
2018-04-09 16:33:47 -07:00
Vyacheslav Egorov
3352a3fb48
Report an error if compilation during testing times out. ( #15745 )
...
* Report an error if compilation times out instead of waiting forever.
* Remove braces
2018-03-20 11:30:06 -07:00
Vyacheslav Egorov
71b2cfb2a0
Turn Dart 2 mode by default. ( #15565 )
2018-03-16 20:29:38 +01:00
Keerti Parthasarathy
50190d2810
Do not encode the server port in the test file ( #15535 )
...
* Do not encode the server port in the test file
* revert formatting
* add back ignore
* add a default value to serverPort
* address comments
2018-03-15 10:56:10 -07:00
Jason Simmons
466d15433f
Use Dart 2 camel case constants ( #15360 )
2018-03-12 11:06:32 -07:00
Alexander Aprelev
ded538a1bb
Update dependencies with forced upgrade. ( #15344 )
...
* Update dependencies with forced upgrade.
Now that https://github.com/flutter/flutter/issues/15261 is fixed, do the update with upgrade.
* Update test package use following upgrade
* Replace addOption(allowMultiple) with addMultiOption
2018-03-09 10:38:54 -08:00
Jacob Richman
046c6d5f7f
Track which Widget objects were created by the local project. ( #15041 )
...
Make flutter test support the --track-widget-creation flag.
Add widget creation location tests. Tests are skipped when
--track-widget-creation flag is not passed.
2018-03-09 08:09:49 -08:00
Alexander Aprelev
2890e18bcb
Return copied kernel filename for flutter test execution. ( #15298 )
...
* Return copied kernel filename.
This fixes 'flutter test --preview-dart-2' crash.
2018-03-08 16:02:21 -08:00
Alexander Aprelev
1087279a4d
Create frontend compiler in flutter test
lazily. ( #15251 )
...
* Create frontend compiler in `flutter test` lazily.
This is needed to avoid unwarranted runtime dependencies on Artifacts,
for example when in non-preview-dart-2 mode.
Refactor the compilation-related code into _Compiler class.
2018-03-08 11:21:40 -08:00
Alexander Aprelev
c01cad3491
Fix flutter test --preview-dart-2
following last dart roll. ( #15233 )
...
* Fix `flutter test --preview-dart-2` following last dart roll.
Incremental compiler maintains single incremental dill file, so for every test compilation that dill file has to be copied away for execution.
* Fix lints
2018-03-07 06:27:58 -08:00
Todd Volkert
d0cbbd5394
Fail if precompiled test entry point is specified, but more than one test suite is run ( #15208 )
2018-03-06 21:28:52 -08:00
Keerti Parthasarathy
0263394028
Adding back commit #e0f6e62 with fix to test failures ( #15212 )
...
* Add to Artifacts, and add optional arguments to entry points for flut… (#15185 )
Add to Artifacts, and add optional arguments to entry points for flutter run and test to allow for wiring up the same with preview-dart-2 internally
* Changing packages uri here is not necessary
2018-03-06 14:41:50 -08:00
Keerti Parthasarathy
7066cd7b88
Revert "Add to Artifacts, and add optional arguments to entry points for flut… ( #15185 )" ( #15210 )
...
This reverts commit e0f6e626e9
.
2018-03-06 11:55:39 -08:00
Keerti Parthasarathy
e0f6e626e9
Add to Artifacts, and add optional arguments to entry points for flut… ( #15185 )
...
Add to Artifacts, and add optional arguments to entry points for flutter run and test to allow for wiring up the same with preview-dart-2 internally
2018-03-06 10:03:42 -08:00
Alexander Aprelev
d3797628ca
Run flutter tests in preview-dart-2 mode on travis flutter builds. ( #14728 )
...
* Run flutter tests in preview-dart-2 mode on travis flutter builds.
* Run dart2 tests on osx. Run dart tests in dart2.
* Fix name camelCase
* Default options to empty array, rather than null
* Troubleshoot failures
* More logging
* Troubleshoot: run single test
* Troubleshoot: run 15 tests
* Troubleshoot: run 15 tests with fix
* Try limit concurrency to 1
* Limit concurrency for preview-dart-2 tests to 4
* Move dart2 tests to allow_failures section
* Reinstate tests_dart_2 shard
* Raise concurrency to 8
* Reuse compiler across multiple test runs
* Allow to switch entry points when recompiling.
Actually use single compiler to incrementally recompile all tests executed by 'flutter test'.
* Remove leftover commented code
* Fix comment
* Lints
2018-03-01 09:04:26 -08:00
Alexander Aprelev
9a9aed191d
When doing flutter test use batch compiler and link platform in. ( #14983 )
...
This is to fix #14931 .
2018-02-28 12:54:30 -08:00
asiva
11105bed4d
- Roll engine to version 9867298f86a7ccd5f1c07a83796ee21567d37fb0
...
- Remove redundant strong flag as it is the default for preview-dart-2
now
2018-02-15 17:45:36 -08:00
Vyacheslav Egorov
3932a22cdf
When running tests with --preview-dart-2 check for compilation errors. ( #14724 )
...
If compiler failed to produce Kernel binary then compile(...) returns
null to the caller. If we don't check for null we end up trying to
run file called "null" which causes a very confusing crash of the
flutter_tester.
2018-02-15 16:57:52 +01:00
asiva
83e0ca24fd
Fuse --strong into --preview-dart-2 option.
2018-02-08 09:18:52 -08:00
Alexandre Ardhuin
841d5d7bd5
prefer_const_declarations on local variables ( #14358 )
2018-02-01 07:51:26 +01:00
Vyacheslav Egorov
340d9e00cf
Fix various strong mode issues. ( #14284 )
2018-01-31 08:21:32 +01:00
Vyacheslav Egorov
ae72cea001
Fix an incorrect variable name in Dart 2 flutter test code ( #14283 )
...
The code was attempting to delete temporaryDirectory while it should have been deleting tempBundleDirectory
2018-01-25 19:33:24 -08:00
Ian Hickson
97b9579e55
Random cleanup across the tree ( #14221 )
2018-01-25 09:46:48 -08:00
Alexander Aprelev
7c2fe34fbb
Run 'flutter test --preview-dart-2' in strong mode ( #14188 )
...
* Default to strong for 'flutter test --preview-dart-2' mode
* Remove empty line
* Dont init to null
* Break up line to make it more readable
* Add missing type annotation
2018-01-22 10:26:01 -08:00
Alexander Aprelev
e910ce7ece
Fix local import paths. ( #14183 )
...
This is in attempt to resolve build failure on Windows.
2018-01-19 07:05:28 -08:00
Alexander Aprelev
a50b465c99
Add --preview-dart-2 to 'flutter test' ( #14135 )
2018-01-19 06:17:28 -08:00
Alexandre Ardhuin
15601fe55c
Enable lint prefer asserts in initializer lists ( #12903 )
...
* enable lint prefer_asserts_in_initializer_lists
* enable --assert-initializer
2017-11-08 22:59:49 +01:00
Ian Hickson
d402d40aa6
Up a timeout to reduce the number of flakes. ( #12837 )
2017-11-02 12:19:43 -07:00
Ian Hickson
e1174eb0f2
TextPainter RTL ( #12791 )
2017-10-31 10:39:34 -07:00
Jason Simmons
1affb4237a
Remove the diagnostic server from flutter_tools ( #12771 )
2017-10-30 15:53:04 -07:00
Alexandre Ardhuin
1fce14a31c
enable lint prefer_single_quotes ( #12665 )
2017-10-22 18:11:36 +02:00
xster
e28765a997
Delinting future awaits round 3 ( #10791 )
...
* round 3
* partially address comments
* merge
* review notes
* review
* review
* review
2017-09-20 17:24:43 -07:00
Phil Quitslund
05562d5734
Quiet debug test runner output when in machine mode. ( #11228 )
...
* Quiet debug test runner output when in machine mode.
See: https://github.com/flutter/flutter-intellij/issues/1176
* json => machine
2017-07-14 11:20:50 -07:00
Brian Slesinsky
d1feb1ad5f
Coverage: fix installHook API ( #10747 )
...
- remove unused collector parameter
- clarify a comment
- inline _currentPackageTestDir
2017-06-15 14:39:46 -07:00
Brian Slesinsky
e329356f0f
Oops, fix code coverage ( #10672 )
...
And add comments explaining why.
2017-06-13 14:42:09 -07:00
Brian Slesinsky
3528cd6f2d
flutter test: add --machine flag ( #10520 )
...
Currently this just prints the observatory URL as a JSON event.
Refactored the code to make this fit in.
2017-06-13 13:26:32 -07:00
Todd Volkert
2841497344
Support IPv6 in coverage collection ( #9841 )
...
Builds on engine fixes to #9813
Also fixes #7366
2017-05-05 11:09:55 -07:00
Todd Volkert
ba4bba7498
Support IPv6 in test platform ( #9795 )
2017-05-03 22:50:24 -07:00
Todd Volkert
3b5b46b07c
Revert "Switch test platform to use IPv6 ( #9775 )" ( #9779 )
...
This reverts commit 9f5fa31ebd
.
2017-05-03 14:46:28 -07:00
Todd Volkert
9f5fa31ebd
Switch test platform to use IPv6 ( #9775 )
2017-05-03 14:33:38 -07:00
Todd Volkert
dbc447b19a
Only complete the web socket future once ( #9176 )
2017-04-04 10:15:48 -07:00
Alexandre Ardhuin
2de61a0853
add @required when there's an assert not null ( #9124 )
...
* add @required when there's an assert not null
* address review comments
2017-03-31 18:34:13 +02:00
Phil Quitslund
ab6df3af40
Bump to Dart SDK 1.23.0-dev.10 ( #9051 )
...
* Bump to Dart SDK 1.23.0-dev.10
* allows us to understand flutter usage via telemetry
* brings in `@immutable`
Fixes : #9042
* completer fix
* Update to platform 1.1.1.
2017-03-28 14:53:03 -07:00
Alexandre Ardhuin
2166ea5b7f
apply partially the upcoming unnecessary_lambdas ( #8810 )
2017-03-15 23:09:58 +01:00
Chris Bracken
7a09316cd0
Declare locals final where not reassigned (flutter_tools) ( #8570 )
2017-03-03 17:50:46 -08:00