Loading topic
async and await, have built small Flutter apps, use the flutter command line tool, and can edit pubspec.yaml. Later chap5 min readflutter test in a project, as covered in the setup chapter. It also assumes you know basic D5 min readtest with expect, and that you know what a late variable is in Dart. As a test file grows, you need a way to organize it and to avoid repeating the same setup code. The test runner gives you group, setUp, tearDown, setUpAll, tearDownAll and 5 min readtest with expect, you know async, await, Future and Stream in Dart, and you have used group and setUp. It covers how the test runner handles asynchronous work, how to assert on Futures and Streams, how to control time, and the mistakes that 5 min readasync and await. It also assumes you can build simple Flutter apps, add packages to pubspec.yaml, and write a basic unit test with test and expect. By the end you will be able to restructure a class so a test can replace its collaborators,5 min readtest and expect, that you know Dart's async and await, and that you have read the previous chapter on dependency injection. You should be able to add a package to dev_dependencies in pubspec.yaml.5 min readasync and await, build stateless and stateful widgets, run flutter from the command line, and add dependencies in pubspec.yaml. It also assumes you have written a plain unit test with test and expect.5 min readtestWidgets test, use finders such as find.text and find.byType, and read async/await code. Here you will learn to drive a widget with WidgetTester and to control when frames are drawn.5 min readtestWidgets test, use finders, and call pump. You should also know how constructor injection and fakes or mocks work from the earlier chapters.5 min readtestWidgets test, use pumpWidget and pump, and run flutter test from the command line.6 min readtestWidgets, use WidgetTester, and add dev dependencies in pubspec.yaml. Here you will run the same test style against the real app on a device, emulator, or desktop window.5 min readflutter test and write unit and widget tests. You should know what test_setup covers: a test/ folder, flutter_test in dev_dependencies, and the flutter command line tool. Here you will generate a coverage report, read it, and decide what it can an6 min read