olexale / bdd_widget_test

A BDD-style widget testing library
MIT License
101 stars 30 forks source link

feat: For steps with example have column names for parameters #48

Closed lsaudon closed 11 months ago

lsaudon commented 11 months ago

Add the possibility of having the name of the column rather than param1 in the case of a step with examples.

Is it possible that in <> there are only numbers (like <12.3>)?

Feature: Testing feature
  Scenario: eating
    Given there are <number> cucumbers

    Examples:
      | number |
      |   12   |
      |   20   |

Before:

import 'package:flutter_test/flutter_test.dart';

Future<void> thereAreCucumbers(WidgetTester tester, dynamic param1) async {
  throw UnimplementedError();
}

After:

import 'package:flutter_test/flutter_test.dart';

Future<void> thereAreCucumbers(WidgetTester tester, dynamic number) async {
  throw UnimplementedError();
}
olexale commented 11 months ago

Thanks for the PR! I'll review it on the weekend.

olexale commented 11 months ago

Thanks again, @lsaudon! I'll publish a new version of the package with your changes soon.

lsaudon commented 11 months ago

Thanks again, @lsaudon! I'll publish a new version of the package with your changes soon.

Thank you for this package and your responsiveness.