testing library
A flutter run --machine a test controls, for anything that drives a
FlutterRun and wants to say what the tool answers, and a game's VM
service a test controls, for an AttachedRun.
Classes
- FakeFlutterRun
- What fakeFlutterRun answers: the run, the fake tool under it, and the arguments each start was given.
- FakeFlutterTool
-
A
flutter run --machinethat says what say is given and records what it is sent. - FakeGame
- A running game's VM service, answering over service as the real one answers over a socket, and recording every call it is sent.
Functions
-
fakeAttachedRun(
FakeGame game, {String uri = 'ws://game/ws'}) → AttachedRun -
An AttachedRun to
game. -
fakeFlutterRun(
{String projectRoot = '/game', String? device = 'macos', FakeGame? game}) → FakeFlutterRun - A FlutterRun over a FakeFlutterTool, and the arguments each start was given, the working directory first.