testing library
Helpers for testing code that uses hint_kit.
Import it from your tests only:
import 'package:hint_kit/testing.dart';
setUp(resetHintKit);
It deliberately does not depend on flutter_test: everything here is plain
Dart and Flutter, so it adds nothing to your app's dependency graph and can
be used from an integration test, a golden harness or a driver script
equally well. Finding a bubble needs no helper — find.text('…') already
works, because the bubble is ordinary widgets in the overlay.
Classes
- FakeTourStorage
- A TourStorage with the state a test wants to arrange up front.
- HintEvent Advanced
- What happened to one hint.
- HintObserver Advanced
- Watches every hint and tour in the app.
- RecordingHintObserver
- A HintObserver that records what it hears.
- TourStorage Tours
- Remembers which tours a user has already seen.
Functions
-
resetHintKit(
) → void - Puts the package's process-global state back to how it starts.