testing library
Stable widget testing API for composable terminal UIs.
This is a convenience re-export of package:artisanal_widgets/testing.dart
so apps depending on package:artisanal can keep using the umbrella
package for the supported widget testing surface.
Prefer the direct artisanal_widgets package when widget testing helpers
are the only UI surface your app needs. Keep this umbrella entrypoint when
the app already depends on the wider Artisanal toolkit.
Classes
- Finder
- Query helper for locating text in the rendered output.
- TapTarget
- A lazy reference to a screen position, resolved at tap time.
- WidgetTester
- A testing harness for TUI widgets that drives events through a real Program instance.
Functions
-
testWidgets(
String description, Future< void> callback(WidgetTester tester), {Object? skip}) → Future<void> -
Runs
callbackwith a fresh WidgetTester, managing setup/teardown automatically.