pickle_parser 1.1.2
pickle_parser: ^1.1.2 copied to clipboard
A Flutter package for parsing pickle files and executing Cucumber steps in widget tests.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
// import 'package:pickle_parser/pickle_parser.dart';
void main() {
testWidgets('Example: Parse and execute pickle file steps',
(WidgetTester tester) async {
// Create a simple test widget
await tester.pumpWidget(
MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('Test App')),
body: const Column(
children: [
Text('Hello World'),
ElevatedButton(
onPressed: null,
child: Text('Click Me'),
),
],
),
),
),
);
// Note: In a real scenario, you would have a pickle file in your assets
// and call: await pickleParser(tester, 'assets/test.feature');
// For this example, we just verify that the widget is set up correctly
expect(find.text('Hello World'), findsOneWidget);
expect(find.text('Click Me'), findsOneWidget);
});
}