bdd_widget_test 1.0.3 copy "bdd_widget_test: ^1.0.3" to clipboard
bdd_widget_test: ^1.0.3 copied to clipboard

outdated

A BDD-style widget testing library. Generates Flutter widget tests from *.feature files.

example/README.md

Create a *.feature file in the test folder. The minimal file might be:

Feature: Counter
    Scenario: Initial counter value is 0
        Given the app is running
        Then I see {'0'} text

Run

flutter packages pub run build_runner watch --delete-conflicting-outputs

The output Dart file would be:

// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: unused_import

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

import './step/the_app_is_running.dart';
import './step/i_see_text.dart';

void main() {
  group('Counter app', () {
    testWidgets('Initial counter value is 0', (WidgetTester tester) async {
      await theAppIsRunning(tester);
      await iSeeText(tester, '0');
    });
  });
}

Refer to step folder to get familiar with steps implementation.

133
likes
0
pub points
89%
popularity

Publisher

verified publisherleushchenko.com

A BDD-style widget testing library. Generates Flutter widget tests from *.feature files.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

build, build_config, characters, flutter, flutter_test, path

More

Packages that depend on bdd_widget_test