diff --git a/CHANGELOG.md b/CHANGELOG.md index d6b0e5c..01e4c8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [1.0.8] - 25/08/2019 +* Updated to latest dart_gherkin lib which now has support for 'Scenerio Outline' and 'Example' blocks + ## [1.0.7] - 23/08/2019 * Updated to latest dart_gherkin lib diff --git a/example/report.json b/example/report.json index b807da2..bc94785 100644 --- a/example/report.json +++ b/example/report.json @@ -1 +1 @@ -[{"keyword":"Feature","uri":".\\test_driver\\features\\counter.feature","id":"startup","name":"Startup","description":"","line":0,"elements":[{"keyword":"Scenario","type":"scenario","id":"startup;should increment counter","name":"should increment counter","description":"","line":2,"steps":[{"keyword":"Given ","name":"I expect the \"counter\" to be \"0\"","line":3,"result":{"status":"passed","duration":23000000}},{"keyword":"When ","name":"I tap the \"increment\" button","line":4,"result":{"status":"passed","duration":276000000}},{"keyword":"And ","name":"I tap the \"increment\" button","line":5,"result":{"status":"passed","duration":221000000}},{"keyword":"Then ","name":"I expect the \"counter\" to be \"2\"","line":6,"result":{"status":"passed","duration":9000000}}]},{"keyword":"Scenario","type":"scenario","id":"startup;counter should reset when app is restarted","name":"counter should reset when app is restarted","description":"","line":8,"steps":[{"keyword":"Given ","name":"I expect the \"counter\" to be \"0\"","line":9,"result":{"status":"passed","duration":21000000}},{"keyword":"When ","name":"I tap the \"increment\" button","line":10,"result":{"status":"passed","duration":286000000}},{"keyword":"Then ","name":"I expect the \"counter\" to be \"1\"","line":11,"result":{"status":"passed","duration":9000000}},{"keyword":"When ","name":"I restart the app","line":12,"result":{"status":"passed","duration":2013000000}},{"keyword":"Then ","name":"I expect the \"counter\" to be \"0\"","line":13,"result":{"status":"passed","duration":17000000}}]}]},{"keyword":"Feature","uri":".\\test_driver\\features\\counter_increases.feature","id":"counter","name":"Counter","description":"","line":0,"elements":[{"keyword":"Scenario","type":"scenario","id":"counter;counter increases when the button is pressed","name":"Counter increases when the button is pressed","description":"","line":4,"steps":[{"keyword":"Given ","name":"I pick the colour red","line":5,"result":{"status":"passed","duration":0}},{"keyword":"Given ","name":"I expect the \"counter\" to be \"0\"","line":6,"result":{"status":"passed","duration":16000000}},{"keyword":"When ","name":"I tap the \"increment\" button 10 times","line":7,"result":{"status":"passed","duration":2271000000}},{"keyword":"Then ","name":"I expect the \"counter\" to be \"10\"","line":8,"result":{"status":"passed","duration":8000000}}]}]},{"keyword":"Feature","uri":".\\test_driver\\features\\custom_parameter_example.feature","id":"custom parameter example","name":"Custom Parameter Example","description":"","line":0,"elements":[{"keyword":"Scenario","type":"scenario","id":"custom parameter example;custom colour parameter","name":"Custom colour parameter","description":"","line":3,"steps":[{"keyword":"Given ","name":"I pick the colour red","line":4,"result":{"status":"passed","duration":0}},{"keyword":"Given ","name":"I pick the colour green","line":5,"result":{"status":"passed","duration":0}},{"keyword":"Given ","name":"I pick the colour blue","line":6,"result":{"status":"passed","duration":0}}]}]},{"keyword":"Feature","uri":".\\test_driver\\features\\app_restart.feature","id":"startup","name":"Startup","description":"","line":0,"elements":[{"keyword":"Scenario","type":"scenario","id":"startup;counter should reset when app is restarted","name":"counter should reset when app is restarted","description":"","line":2,"steps":[{"keyword":"Given ","name":"I expect the \"counter\" to be \"0\"","line":3,"result":{"status":"passed","duration":18000000}},{"keyword":"When ","name":"I tap the \"increment\" button","line":4,"result":{"status":"passed","duration":286000000}},{"keyword":"Then ","name":"I expect the \"counter\" to be \"1\"","line":5,"result":{"status":"passed","duration":8000000}},{"keyword":"When ","name":"I restart the app","line":6,"result":{"status":"passed","duration":2001000000}},{"keyword":"Then ","name":"I expect the \"counter\" to be \"0\"","line":7,"result":{"status":"passed","duration":17000000}}]}]},{"keyword":"Feature","uri":".\\test_driver\\features\\sub-features\\counter_increases.feature","id":"counter","name":"Counter","description":"","line":0,"elements":[{"keyword":"Scenario","type":"scenario","id":"counter;counter increases when the button is pressed","name":"Counter increases when the button is pressed","description":"","line":4,"steps":[{"keyword":"Given ","name":"I expect the \"counter\" to be \"0\"","line":5,"result":{"status":"passed","duration":19000000}},{"keyword":"When ","name":"I tap the \"increment\" button 20 times","line":6,"result":{"status":"passed","duration":4473000000}},{"keyword":"Then ","name":"I expect the \"counter\" to be \"20\"","line":7,"result":{"status":"passed","duration":7000000}}]}]},{"keyword":"Feature","uri":".\\test_driver\\features\\drawer.feature","id":"drawer","name":"Drawer","description":"","line":0,"elements":[{"keyword":"Scenario","type":"scenario","id":"drawer;should open the drawer","name":"should open the drawer","description":"","line":2,"steps":[{"keyword":"Given ","name":"I open the drawer","line":3,"result":{"status":"passed","duration":1416000000}},{"keyword":"Given ","name":"I close the drawer","line":4,"result":{"status":"passed","duration":375000000}}]}]}] \ No newline at end of file +[{"keyword":"Feature","uri":".\\test_driver\\features\\counter_increases_scenerio_outline_example.feature","id":"counter","name":"Counter","description":"","line":0,"elements":[{"keyword":"Scenario","type":"scenario","id":"counter;counter increases when the button is pressed (example 1)","name":"Counter increases when the button is pressed (Example 1)","description":"","line":4,"steps":[{"keyword":"Given ","name":"I pick the colour red","line":5,"result":{"status":"passed","duration":0}},{"keyword":"Given ","name":"I expect the \"counter\" to be \"0\"","line":6,"result":{"status":"passed","duration":20000000}},{"keyword":"When ","name":"I tap the \"increment\" button 1 times","line":7,"result":{"status":"passed","duration":282000000}},{"keyword":"Then ","name":"I expect the \"counter\" to be \"1\"","line":8,"result":{"status":"passed","duration":10000000}}]},{"keyword":"Scenario","type":"scenario","id":"counter;counter increases when the button is pressed (example 2)","name":"Counter increases when the button is pressed (Example 2)","description":"","line":4,"steps":[{"keyword":"Given ","name":"I pick the colour red","line":5,"result":{"status":"passed","duration":0}},{"keyword":"Given ","name":"I expect the \"counter\" to be \"0\"","line":6,"result":{"status":"passed","duration":18000000}},{"keyword":"When ","name":"I tap the \"increment\" button 2 times","line":7,"result":{"status":"passed","duration":524000000}},{"keyword":"Then ","name":"I expect the \"counter\" to be \"2\"","line":8,"result":{"status":"passed","duration":11000000}}]},{"keyword":"Scenario","type":"scenario","id":"counter;counter increases when the button is pressed (example 3)","name":"Counter increases when the button is pressed (Example 3)","description":"","line":4,"steps":[{"keyword":"Given ","name":"I pick the colour red","line":5,"result":{"status":"passed","duration":0}},{"keyword":"Given ","name":"I expect the \"counter\" to be \"0\"","line":6,"result":{"status":"passed","duration":19000000}},{"keyword":"When ","name":"I tap the \"increment\" button 5 times","line":7,"result":{"status":"passed","duration":1168000000}},{"keyword":"Then ","name":"I expect the \"counter\" to be \"5\"","line":8,"result":{"status":"passed","duration":7000000}}]},{"keyword":"Scenario","type":"scenario","id":"counter;counter increases when the button is pressed (example 4)","name":"Counter increases when the button is pressed (Example 4)","description":"","line":4,"steps":[{"keyword":"Given ","name":"I pick the colour red","line":5,"result":{"status":"passed","duration":0}},{"keyword":"Given ","name":"I expect the \"counter\" to be \"0\"","line":6,"result":{"status":"passed","duration":20000000}},{"keyword":"When ","name":"I tap the \"increment\" button 10 times","line":7,"result":{"status":"passed","duration":2338000000}},{"keyword":"Then ","name":"I expect the \"counter\" to be \"10\"","line":8,"result":{"status":"passed","duration":7000000}}]}]}] \ No newline at end of file diff --git a/example/test_driver/features/counter_increases_scenerio_outline_example.feature b/example/test_driver/features/counter_increases_scenerio_outline_example.feature new file mode 100644 index 0000000..f9f4834 --- /dev/null +++ b/example/test_driver/features/counter_increases_scenerio_outline_example.feature @@ -0,0 +1,16 @@ +Feature: Counter + The counter should be incremented when the button is pressed. + + @scenario_outline + Scenario Outline: Counter increases when the button is pressed + Given I pick the colour red + Given I expect the "counter" to be "0" + When I tap the "increment" button times + Then I expect the "counter" to be "" + + Examples: + | tap_amount | + | 1 | + | 2 | + | 5 | + | 10 | \ No newline at end of file diff --git a/pubspec.lock b/pubspec.lock index f21c010..9227693 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -104,7 +104,7 @@ packages: name: gherkin url: "https://pub.dartlang.org" source: hosted - version: "1.0.5" + version: "1.0.7" glob: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index f596ec1..214eba6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_gherkin description: A Gherkin / Cucumber parser and test runner for Dart and Flutter -version: 1.0.7 +version: 1.0.8 author: Jon Samwell homepage: https://github.com/jonsamwell/flutter_gherkin @@ -16,7 +16,7 @@ dependencies: sdk: flutter glob: ^1.1.7 meta: ">=1.1.6 <=1.1.7" - gherkin: ^1.0.5 + gherkin: ^1.0.7 dev_dependencies: test: ">=1.6.1 <=1.6.4"