Results for “Testing”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Concepts
Guides
- Testing Flutter appsdoc
Learn more about the different types of testing and how to write them. The more features your app has, the harder it is to test manually
- An introduction to unit testingdoc
write unit tests. How can you ensure that your app continues to work as you add more features or change existing functionality? By writing tests. Unit
- An introduction to widget testingdoc
WidgetTester allows building and interacting with widgets in a test environment. The testWidgets() function automatically creates a new WidgetTester for each test case, and is used
- Integration testing conceptsdoc
Learn about integration testing in Flutter. Unit tests and widget tests validate individual classes, functions, or widgets. They don't validate how individual pieces work
- Mock dependencies using Mockitodoc
Mockito package to mimic the behavior of services for testing. Sometimes, unit tests might depend on classes that fetch data from live web services or databases
- Accessibility testingdoc
Information on Flutter's accessibility testing. Accessibility regulations To ensure your app is accessible, check it against public standards like the Web Content Accessibility Guidelines (WCAG
- Handle scrollingdoc
handle scrolling in a widget test. Many apps feature lists of content, from email clients to music apps and beyond. To verify that lists contain the expected
- Build and release an iOS appdoc
step walkthrough of releasing a Flutter app to the App Store and TestFlight . Preliminaries Xcode is required to build and release your app. You must use a device
Version changes
- Deprecated the window singleton3.10.0deprecated
In preparation for supporting multiple views and multiple windows, the `window` singleton
- Transition of platform channel test interfaces to flutter_test package2.5.0breaking
will continue to work. Tests that previously did not import `package:flutter_test/flutter_test.dart` can do so to enable these shims; this should be sufficient to migrate most
- TestWidgetsFlutterBinding.clock1.20.0breaking
TestWidgetsFlutterBinding.clock` now comes from `package:clock` and not `package:quiver`. The `flutter_test` package is removing its dependency on the heavier weight `quiver` package in favor
- [Test cross imports] No material in `test/foundation`, `test/gestures`, `test/semantics`, `test/services`3.47.0improvement
Test cross imports] No material in `test/foundation`, `test/gestures`, `test/semantics`, `test/services` (Framework, by @navaronbracke
- TestTextInput state reset1.17.0breaking
state of a `TestTextInput` instance, a stub for the system's onscreen keyboard, is now reset between tests. The state of `WidgetTester.testTextInput` is now reset before running
- Test coverage is broken due to pinned `test_api` version in `flutter_test`.3.41.1bugfix
Test coverage is broken due to pinned `test_api` version in `flutter_test
- Testing autosubmit bot -- updating testowners3.47.0improvement
Testing autosubmit bot -- updating testowners (Other changes, by @gaaclarke
- - Fixes testMultiplePlatformViewsWithOverlays test on MacOS3.16.5bugfix
Fixes testMultiplePlatformViewsWithOverlays test on MacOS
- Version 1.29 of the Dart test package adds a blank line to test output causing unexpected test failures.3.41.1bugfix
Version 1.29 of the Dart test package adds a blank line to test output causing unexpected test failures
- Reland: remove material in context_menu_controller_test, icon_test, list_wheel_scroll_view_test, media_query_test, platform_menu_bar_test3.44.0improvement
Reland: remove material in context_menu_controller_test, icon_test, list_wheel_scroll_view_test, media_query_test, platform_menu_bar_test (Framework
- The default page transition on Android is now PredictiveBackPageTransitionBuilder3.38.0breaking
The default page transition on Android has been updated from `ZoomPageTransitionsBuilder` to
- Semantics Order of the Overlay Entries in Modal Routes1.20.0breaking
route overlay entries. Code before migration: ```dart import 'dart:ui'; import 'package:flutter_test/flutter_test.dart'; import 'package:flutter/rendering.dart'; import 'package:material_ui/material_ui.dart'; void main() { testWidgets('example test', (WidgetTester
- - Golden test failures can cause the test harness to stall.3.35.3bugfix
Golden test failures can cause the test harness to stall
- [test cross imports] More test/rendering + flutter_test/test fixes3.47.0bugfix
test cross imports] More test/rendering + flutter_test/test fixes (Framework, by @navaronbracke
- Change the enterText method to move the caret to the end of the input text2.5.0breaking
WidgetTester.enterText` and `TestTextInput.enterText` methods now move the caret to the end of the input text. In addition to replacing the text with the supplied text, `WidgetTester.enterText` and `TestTextInput.enterText
- Android FlutterMain.setIsRunningInRobolectricTest testing API removed2.0.0removed
write Java JUnit tests (such as Robolectric tests) against the Flutter engine's Java embedding and used the `FlutterMain.setIsRunningInRobolectricTest(true)` API, replace it with the following
- The RenderEditable needs to be laid out before hit testing1.20.0breaking
before doing so. Code before migration: ```dart import 'package:flutter/rendering.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:material_ui/material_ui.dart'; void main() { test('attach and detach correctly handle gesture
- - Fix OOM VM test (`transferable_throws_oom_test` crashing after upgrade from Ubuntu 16)2.2.2bugfix
test (`transferable_throws_oom_test` crashing after upgrade from Ubuntu
- Update `test_timeout_secs` to match `timeout` for `Linux web_skwasm_tests_*` and `Linux web_canvaskit_tests_*`3.38.0improvement
Update `test_timeout_secs` to match `timeout` for `Linux web_skwasm_tests_*` and `Linux web_canvaskit_tests_*` (Other changes, by @mdebbar
- Add `TestTextField` and migrate tests3.44.0new-feature
TestTextField` and migrate tests (Material, by @Renzo-Olivares). TestTextField
- Changing the default goldenFileComparator for integration_tests3.32.0breaking
default which should work as expected: ```dart diff import 'package:integration_test/integration_test.dart'; - import 'package:my_integration_test/custom_golden_file_comparator.dart'; void main() { - goldenFileComparator = CustomGoldenFileComparatorThatWorks(); // ... } ``` _Fun fact_: The existing code that
- Container color optimization1.17.0breaking
create a `BoxDecoration` need to be modified. Code before migration: ```dart testWidgets('Container color', (WidgetTester tester) async { await tester.pumpWidget(Container(color: Colors.red)); final Container container = tester.widgetList ().first; expect
- Fix leaks in `flutter_test` tests3.44.0bugfix
leaks in `flutter_test` tests (Framework, by @dkwingsmt
- Standardize on Test* widgets in *_tester.dart files3.44.0improvement
Standardize on Test* widgets in *_tester.dart files (Framework, by @justinmc
- Replace AnimationSheetBuilder.display with collate2.5.0breaking
following changes have been made to the `AnimationSheetBuilder` class: `AnimationSheetBuilder` is a testing utility class that records frames of an animating widget, and later composes the frames
- Reland Standardize on Test* widgets in *_tester.dart files3.44.0improvement
Reland Standardize on Test* widgets in *_tester.dart files (Framework, by @justinmc
- [Android] Break up plugin_test integration tests3.38.0improvement
Android] Break up plugin_test integration tests (Other changes, by @camsim99
- Explain how to run Google Test tests directly3.38.0improvement
Explain how to run Google Test tests directly (Other changes, by @loic-sharma
- Use local semantics tester in Material button tests3.47.0improvement
local semantics tester in Material button tests (Material, by @MarlonJD
- Add android_hardware_smoke_test integration tests3.47.0new-feature
android_hardware_smoke_test integration tests (Other changes, by @andywolff
- Inline test callback painter in tab scaffold test3.47.0improvement
Inline test callback painter in tab scaffold test (Framework, by @DaveT1991
- Update .ci.yaml and TESTOWNERS for arc macrobenchmark tests3.41.0improvement
Update .ci.yaml and TESTOWNERS for arc macrobenchmark tests (Other changes
- Add TestWidgetsApp utility and refactor widget tests to use WidgetsApp3.44.0new-feature
TestWidgetsApp utility and refactor widget tests to use WidgetsApp (Framework, by @rkishan516). TestWidgetsApp WidgetsApp
- [Test cross_imports] Check cross imports in flutter_test/**3.47.0improvement
Test cross_imports] Check cross imports in flutter_test/** (Framework, by @navaronbracke
- Add a platform view test to android_hardware_smoke_test3.47.0new-feature
platform view test to android_hardware_smoke_test (Framework, by @andywolff
- [Linux] Use fixture tests in remaining unit tests3.47.0improvement
Linux] Use fixture tests in remaining unit tests (Framework, by @robert-ancell
- Add a platform view test to android_hardware_smoke_test3.47.0new-feature
platform view test to android_hardware_smoke_test (Framework, by @andywolff
- Encourage splitting large test files in testing documentation 23.44.0improvement
Encourage splitting large test files in testing documentation 2 (Framework, by @crackedhandle
- Fix style manager test by actually focusing the tested element.3.44.0bugfix
style manager test by actually focusing the tested element. (Web, by @harryterkelsen
- Update the test package for the web engine unit test bits.3.38.0platform
Update the test package for the web engine unit test bits. (Web, by @eyebrowsoffire
- Fix bug in test_golden_comparator, add an e2e test.3.38.0tooling
test_golden_comparator, add an e2e test. (Tooling, by @matanlurey
- feat: Add --no-uninstall flag to flutter test for integration tests3.44.0tooling
feat: Add --no-uninstall flag to flutter test for integration tests (Tooling, by @Mastersam07
- Made sure no test() declaration happens asynchronously in fragment shader tests3.44.0improvement
Made sure no test() declaration happens asynchronously in fragment shader tests (Other changes, by @gaaclarke
- Fix false positives for hit test misses in flutter_test3.44.0bugfix
false positives for hit test misses in flutter_test (Framework, by @O-Hannonen
- Add calls to await `flutterDriver.waitUntilFirstFrameRasterized()` for all `android_engine_test` screenshot tests3.44.0new-feature
calls to await `flutterDriver.waitUntilFirstFrameRasterized()` for all `android_engine_test` screenshot tests (Other changes, by @gmackall
- Add other types of platform view tests to android_hardware_smoke_test3.47.0new-feature
other types of platform view tests to android_hardware_smoke_test (Other changes, by @andywolff
- Simplify TesterContextGLES (multithreading logic not needed), and enable some tests that now pass3.44.0new-feature
Simplify TesterContextGLES (multithreading logic not needed), and enable some tests that now pass (Other changes
- Remove `embedded_android_views` (on-device) tests, same as emulator test3.38.0improvement
Remove `embedded_android_views` (on-device) tests, same as emulator test (Other changes, by @matanlurey
- - Update DDC test and builder configuration3.7.6bugfix
Update DDC test and builder configuration
- Updated test package and related dependencies.3.41.4bugfix
Updated test package and related dependencies
- Temporarily remove the Pixel 9/API 36 device from the Firebase Test Lab tests.3.44.0improvement
Temporarily remove the Pixel 9/API 36 device from the Firebase Test Lab tests. (Other changes, by @jason-simmons