import 'package:flutter_test/flutter_test.dart'; import 'package:REPLACE_ME_DART_PACKAGE_NAME/main.dart'; import 'package:REPLACE_ME_DART_PACKAGE_NAME/src/rust/frb_generated.dart'; import 'package:integration_test/integration_test.dart'; void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); setUpAll(() async => await RustLib.init()); testWidgets('Can call rust function', (WidgetTester tester) async { await tester.pumpWidget(const MyApp()); expect(find.textContaining('Result: `Hello, Tom!`'), findsOneWidget); }); }