import 'package:flutter_test/flutter_test.dart'; import 'package:unibo_android/main.dart'; import 'package:unibo_android/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); }); }