File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import 'package:bdd_widget_test/src/feature_file.dart' ;
2+ import 'package:flutter_test/flutter_test.dart' ;
3+
4+ void main () {
5+ test ('Diacritics ' , () {
6+ const featureFile = '''
7+ Feature: Testing feature
8+ Scenario: Testing scenario
9+ Given los diacríticos son útil
10+ ''' ;
11+
12+ const expectedFeatureDart = '''
13+ // GENERATED CODE - DO NOT MODIFY BY HAND
14+ // ignore_for_file: unused_import, directives_ordering
15+
16+ import 'package:flutter/material.dart';
17+ import 'package:flutter_test/flutter_test.dart';
18+
19+ import './step/los_diacriticos_son_util.dart';
20+
21+ void main() {
22+ group(\'\'\' Testing feature\'\'\' , () {
23+ testWidgets(\'\'\' Testing scenario\'\'\' , (tester) async {
24+ await losDiacriticosSonUtil(tester);
25+ });
26+ });
27+ }
28+ ''' ;
29+
30+ final feature = FeatureFile (
31+ featureDir: 'test.feature' ,
32+ package: 'test' ,
33+ input: featureFile,
34+ );
35+ expect (feature.dartContent, expectedFeatureDart);
36+ });
37+ }
You can’t perform that action at this time.
0 commit comments