unibo-orari/integration_test/simple_test.dart

14 lines
525 B
Dart
Raw Normal View History

2024-11-28 16:09:20 +01:00
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);
});
}