flutter_glados 1.1.17 flutter_glados: ^1.1.17 copied to clipboard
A simple testing framework that tries to break your properties. With Flutter support.
Fork of https://github.com/MarcelGarus/glados with added support for testing Flutter widgets.
This package specifically adds the ability to call Glados<T>().testWidgets()
.
For instance:
Glados3<String, int, String>(
any.letter,
any.int,
any.any.letterOrDigits,
).testWidgets('test explanation',
(tester, s, n, s2) async {
// Build some widgets with random values
await tester.pumpAndSettle();
expect(); // Check something
});
Example #
See it #
Try it #
- $ cd flutter_glados
- $ flutter pub get (needs flutter_test from sdk)
- $ cd flutter_glados/example
- $ flutter test