pickle_parser 1.1.2 copy "pickle_parser: ^1.1.2" to clipboard
pickle_parser: ^1.1.2 copied to clipboard

A Flutter package for parsing pickle files and executing Cucumber steps in widget tests.

example/example.dart

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);
  });
}
1
likes
160
points
77
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for parsing pickle files and executing Cucumber steps in widget tests.

Repository (GitHub)

Topics

#testing #cucumber #gherkin #bdd #flutter-testing

Documentation

API reference

License

MIT (license)

Dependencies

args, flutter, flutter_test, path

More

Packages that depend on pickle_parser