diff --git a/CHANGELOG.md b/CHANGELOG.md index 3979479c..7d8beb7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. Back to [Readme](README.md). +## [0.7.0] - 2018-04-18 + +# Changed + +* Unified report design +* Updated all dependencies +* Completely changed freemarker code to be better extensible + ## [0.6.0] - 2018-04-12 # Added diff --git a/README.md b/README.md index 1c02a27f..cf06018c 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ - [Cluecumber Report Maven Plugin](#cluecumber-report-maven-plugin) +- [Generated pages](#generated-pages) + - [Test suite overview page](#test-suite-overview-page) + - [Scenario detail pages](#scenario-detail-pages) + - [Tag statistics page](#tag-statistics-page) - [Changelog](#changelog) - [Prerequisites](#prerequisites) - [Maven POM settings](#maven-pom-settings) @@ -24,10 +28,6 @@ - [Optional Configuration Parameters](#optional-configuration-parameters) - [CustomParameters](#customparameters) - [Example](#example) -- [Generated pages](#generated-pages) - - [Test suite overview page](#test-suite-overview-page) - - [Scenario detail pages](#scenario-detail-pages) - - [Tag statistics page](#tag-statistics-page) - [Example project](#example-project) - [Additional Information](#additional-information) - [Building](#building) @@ -49,6 +49,39 @@ This project was created because **Note:** If you need to run Cucumber tests in parallel, please check out our [Cucable](https://github.com/trivago/cucable-plugin) project! +# Generated pages + +## Test suite overview page + +This page shows the most important information about the test suite: + +- run time +- number of passed, failed and skipped scenarios +- grouped scenarios by status +- optional custom parameters + +![report_overview](documentation/img/report_overview.png) + +## Scenario detail pages + +The scenario detail pages can be reached by clicking on the scenario name in the test suite overview page. + +It shows: + +- scenario name and description +- step runtimes and status +- before and after steps +- stack traces of failed steps +- screenshots + +![report_detail](documentation/img/report_details.png) + +## Tag statistics page + +The tag statistics page shows an overview about the used tags and passed, failed and skipped scenarios with those tags. + +![tags](documentation/img/tags.png) + ## Changelog All changes are documented in the [full changelog](CHANGELOG.md). @@ -129,37 +162,6 @@ Valid URLs that start with a protocol (http, https, ftp) are automatically recog ![custom parameters](documentation/img/custom_params.png) -# Generated pages - -## Test suite overview page - -This page shows the most important information about the test suite: - -- run time -- number of passed, failed and skipped scenarios -- grouped scenarios by status -- optional custom parameters - -![report_overview](documentation/img/report_overview.png) - -## Scenario detail pages - -The scenario detail pages can be reached by clicking on the scenario name in the test suite overview page. - -It shows: - -- scenario name and description -- step runtimes and status -- before and after steps -- stack traces of failed steps -- screenshots - -![report_detail](documentation/img/report_details.png) - -## Tag statistics page - -The tag statistics page shows an overview about the used tags and passed, failed and skipped scenarios with those tags. - # Example project You can test the complete flow and POM configuration by checking out the [Cucable example project](example-project). diff --git a/documentation/img/report_details.png b/documentation/img/report_details.png index fab4af7a..eb077247 100644 Binary files a/documentation/img/report_details.png and b/documentation/img/report_details.png differ diff --git a/documentation/img/report_overview.png b/documentation/img/report_overview.png index a4332f0c..0cf1e00c 100644 Binary files a/documentation/img/report_overview.png and b/documentation/img/report_overview.png differ diff --git a/documentation/img/tags.png b/documentation/img/tags.png new file mode 100644 index 00000000..858af5b4 Binary files /dev/null and b/documentation/img/tags.png differ diff --git a/example-project/json/001-one-passing-scenario.feature.js.json b/example-project/json/001-one-passing-scenario.feature.js.json deleted file mode 100755 index 0cab2f13..00000000 --- a/example-project/json/001-one-passing-scenario.feature.js.json +++ /dev/null @@ -1,35 +0,0 @@ -[ - { - "elements": [ - { - "id": ";", - "keyword": "Scenario", - "line": 2, - "name": "", - "steps": [ - { - "arguments": [], - "keyword": "Given ", - "line": 3, - "match": { - "location": "support/js/env.js:3" - }, - "name": "this step passes", - "result": { - "duration": 6, - "status": "passed" - } - } - ], - "tags": [], - "type": "scenario" - } - ], - "id": "", - "keyword": "Feature", - "line": 1, - "name": "", - "tags": [], - "uri": "features/001-one-passing-scenario.feature" - } -] diff --git a/example-project/json/001-one-passing-scenario.feature.rb.json b/example-project/json/001-one-passing-scenario.feature.rb.json deleted file mode 100755 index 931af97c..00000000 --- a/example-project/json/001-one-passing-scenario.feature.rb.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "description": "", - "elements": [ - { - "description": "", - "id": ";", - "keyword": "Scenario", - "line": 2, - "name": "", - "steps": [ - { - "keyword": "Given ", - "line": 3, - "match": { - "location": "/Users/aslakhellesoy/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/cucumber-core-1.5.0/lib/cucumber/core/test/filters/activate_steps_for_self_test.rb:22" - }, - "name": "this step passes", - "result": { - "duration": 2990, - "status": "passed" - } - } - ], - "type": "scenario" - } - ], - "id": "", - "keyword": "Feature", - "line": 1, - "name": "", - "uri": "features/001-one-passing-scenario.feature" - } -] diff --git a/example-project/json/002-one-passing-scenario-outline-row.feature.java.json b/example-project/json/002-one-passing-scenario-outline-row.feature.java.json deleted file mode 100755 index e65dbfcd..00000000 --- a/example-project/json/002-one-passing-scenario-outline-row.feature.java.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "description": "", - "elements": [ - { - "description": "", - "id": ";;;2", - "keyword": "Scenario Outline", - "line": 7, - "name": "", - "steps": [ - { - "keyword": "Given ", - "line": 3, - "match": { - "location": "NativeConstructorAccessorImpl.java:-2" - }, - "name": "this step passes", - "result": { - "duration": 251868476, - "status": "passed" - } - } - ], - "type": "scenario" - } - ], - "id": "", - "keyword": "Feature", - "line": 1, - "name": "", - "uri": "features/002-one-passing-scenario-outline-row.feature" - } -] diff --git a/example-project/json/002-one-passing-scenario-outline-row.feature.js.json b/example-project/json/002-one-passing-scenario-outline-row.feature.js.json deleted file mode 100755 index a25806ac..00000000 --- a/example-project/json/002-one-passing-scenario-outline-row.feature.js.json +++ /dev/null @@ -1,35 +0,0 @@ -[ - { - "elements": [ - { - "id": ";", - "keyword": "Scenario", - "line": 7, - "name": "", - "steps": [ - { - "arguments": [], - "keyword": "Given ", - "line": 3, - "match": { - "location": "support/js/env.js:3" - }, - "name": "this step passes", - "result": { - "duration": 5, - "status": "passed" - } - } - ], - "tags": [], - "type": "scenario" - } - ], - "id": "", - "keyword": "Feature", - "line": 1, - "name": "", - "tags": [], - "uri": "features/002-one-passing-scenario-outline-row.feature" - } -] diff --git a/example-project/json/002-one-passing-scenario-outline-row.feature.rb.json b/example-project/json/002-one-passing-scenario-outline-row.feature.rb.json deleted file mode 100755 index f3a91c7c..00000000 --- a/example-project/json/002-one-passing-scenario-outline-row.feature.rb.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "description": "", - "elements": [ - { - "description": "", - "id": ";;;2", - "keyword": "Scenario Outline", - "line": 7, - "name": "", - "steps": [ - { - "keyword": "Given ", - "line": 7, - "match": { - "location": "/Users/aslakhellesoy/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/cucumber-core-1.5.0/lib/cucumber/core/test/filters/activate_steps_for_self_test.rb:22" - }, - "name": "this step passes", - "result": { - "duration": 3014, - "status": "passed" - } - } - ], - "type": "scenario" - } - ], - "id": "", - "keyword": "Feature", - "line": 1, - "name": "", - "uri": "features/002-one-passing-scenario-outline-row.feature" - } -] diff --git a/example-project/json/003-one-failing-scenario.feature.js.json b/example-project/json/003-one-failing-scenario.feature.js.json deleted file mode 100755 index 45df84b2..00000000 --- a/example-project/json/003-one-failing-scenario.feature.js.json +++ /dev/null @@ -1,36 +0,0 @@ -[ - { - "elements": [ - { - "id": ";", - "keyword": "Scenario", - "line": 2, - "name": "", - "steps": [ - { - "arguments": [], - "keyword": "Given ", - "line": 3, - "match": { - "location": "support/js/env.js:7" - }, - "name": "this step fails", - "result": { - "duration": 10, - "error_message": "Error: this step failed\n at World. (/Users/aslakhellesoy/git/cucumber/cucumber-json-formatter/support/js/env.js:8:12)", - "status": "failed" - } - } - ], - "tags": [], - "type": "scenario" - } - ], - "id": "", - "keyword": "Feature", - "line": 1, - "name": "", - "tags": [], - "uri": "features/003-one-failing-scenario.feature" - } -] diff --git a/example-project/json/003-one-failing-scenario.feature.rb.json b/example-project/json/003-one-failing-scenario.feature.rb.json deleted file mode 100755 index 4fad64d0..00000000 --- a/example-project/json/003-one-failing-scenario.feature.rb.json +++ /dev/null @@ -1,35 +0,0 @@ -[ - { - "description": "", - "elements": [ - { - "description": "", - "id": ";", - "keyword": "Scenario", - "line": 2, - "name": "", - "steps": [ - { - "keyword": "Given ", - "line": 3, - "match": { - "location": "/Users/aslakhellesoy/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/cucumber-core-1.5.0/lib/cucumber/core/test/filters/activate_steps_for_self_test.rb:18" - }, - "name": "this step fails", - "result": { - "duration": 34879, - "error_message": "Cucumber::Core::Test::Filters::ActivateStepsForSelfTest::Failure (Cucumber::Core::Test::Filters::ActivateStepsForSelfTest::Failure)\n/Users/aslakhellesoy/.rbenv/versions/2.4.0/bin/bundle:22:in `load'\n/Users/aslakhellesoy/.rbenv/versions/2.4.0/bin/bundle:22:in `
'\nfeatures/003-one-failing-scenario.feature:3:in `Given this step fails'", - "status": "failed" - } - } - ], - "type": "scenario" - } - ], - "id": "", - "keyword": "Feature", - "line": 1, - "name": "", - "uri": "features/003-one-failing-scenario.feature" - } -] diff --git a/example-project/json/004-failing-background-step.feature.java.json b/example-project/json/004-failing-background-step.feature.java.json deleted file mode 100755 index 0577c46a..00000000 --- a/example-project/json/004-failing-background-step.feature.java.json +++ /dev/null @@ -1,55 +0,0 @@ -[ - { - "description": "", - "elements": [ - { - "description": "", - "keyword": "Background", - "line": 2, - "name": "", - "steps": [ - { - "keyword": "Given ", - "line": 3, - "match": { - "location": "NativeConstructorAccessorImpl.java:-2" - }, - "name": "this step fails", - "result": { - "duration": 404491677, - "error_message": "java.lang.RuntimeException: this step failed\n\tat Steps.lambda$new$2(Steps.java:14)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat cucumber.runtime.Utils$1.call(Utils.java:40)\n\tat cucumber.runtime.Timeout.timeout(Timeout.java:16)\n\tat cucumber.runtime.Utils.invoke(Utils.java:34)\n\tat cucumber.runtime.java8.Java8StepDefinition.execute(Java8StepDefinition.java:106)\n\tat cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:40)\n\tat cucumber.api.TestStep.executeStep(TestStep.java:102)\n\tat cucumber.api.TestStep.run(TestStep.java:83)\n\tat cucumber.api.TestCase.run(TestCase.java:58)\n\tat cucumber.runner.Runner.runPickle(Runner.java:80)\n\tat cucumber.runtime.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:140)\n\tat cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:68)\n\tat cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:23)\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\n\tat cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:73)\n\tat cucumber.api.junit.Cucumber.runChild(Cucumber.java:99)\n\tat cucumber.api.junit.Cucumber.runChild(Cucumber.java:41)\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\n\tat cucumber.api.junit.Cucumber$1.evaluate(Cucumber.java:108)\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)\n\tat org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)\n\tat org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)\n\tat org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)\n\tat org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)\n\tat ✽.this step fails(features/004-failing-background-step.feature:3)\n", - "status": "failed" - } - } - ], - "type": "background" - }, - { - "description": "", - "id": ";", - "keyword": "Scenario", - "line": 4, - "name": "", - "steps": [ - { - "keyword": "Given ", - "line": 5, - "match": { - "location": "NativeConstructorAccessorImpl.java:-2" - }, - "name": "this step passes", - "result": { - "status": "skipped" - } - } - ], - "type": "scenario" - } - ], - "id": "", - "keyword": "Feature", - "line": 1, - "name": "", - "uri": "features/004-failing-background-step.feature" - } -] diff --git a/example-project/json/004-failing-background-step.feature.js.json b/example-project/json/004-failing-background-step.feature.js.json deleted file mode 100755 index 8453486d..00000000 --- a/example-project/json/004-failing-background-step.feature.js.json +++ /dev/null @@ -1,48 +0,0 @@ -[ - { - "elements": [ - { - "id": ";", - "keyword": "Scenario", - "line": 4, - "name": "", - "steps": [ - { - "arguments": [], - "keyword": "Given ", - "line": 3, - "match": { - "location": "support/js/env.js:7" - }, - "name": "this step fails", - "result": { - "duration": 19, - "error_message": "Error: this step failed\n at World. (/Users/aslakhellesoy/git/cucumber/cucumber-json-formatter/support/js/env.js:8:12)", - "status": "failed" - } - }, - { - "arguments": [], - "keyword": "Given ", - "line": 5, - "match": { - "location": "support/js/env.js:3" - }, - "name": "this step passes", - "result": { - "status": "skipped" - } - } - ], - "tags": [], - "type": "scenario" - } - ], - "id": "", - "keyword": "Feature", - "line": 1, - "name": "", - "tags": [], - "uri": "features/004-failing-background-step.feature" - } -] diff --git a/example-project/json/004-failing-background-step.feature.rb.json b/example-project/json/004-failing-background-step.feature.rb.json deleted file mode 100755 index 8cf60655..00000000 --- a/example-project/json/004-failing-background-step.feature.rb.json +++ /dev/null @@ -1,45 +0,0 @@ -[ - { - "description": "", - "elements": [ - { - "description": "", - "keyword": "Background", - "line": 2, - "name": "", - "steps": [ - { - "keyword": "Given ", - "line": 3, - "match": { - "location": "/Users/aslakhellesoy/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/cucumber-core-1.5.0/lib/cucumber/core/test/filters/activate_steps_for_self_test.rb:18" - }, - "name": "this step fails", - "result": { - "duration": 23233, - "error_message": "Cucumber::Core::Test::Filters::ActivateStepsForSelfTest::Failure (Cucumber::Core::Test::Filters::ActivateStepsForSelfTest::Failure)\n/Users/aslakhellesoy/.rbenv/versions/2.4.0/bin/bundle:22:in `load'\n/Users/aslakhellesoy/.rbenv/versions/2.4.0/bin/bundle:22:in `
'\nfeatures/004-failing-background-step.feature:3:in `Given this step fails'", - "status": "failed" - } - }, - { - "keyword": "Given ", - "line": 5, - "match": { - "location": "/Users/aslakhellesoy/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/cucumber-core-1.5.0/lib/cucumber/core/test/filters/activate_steps_for_self_test.rb:22" - }, - "name": "this step passes", - "result": { - "status": "skipped" - } - } - ], - "type": "background" - } - ], - "id": "", - "keyword": "Feature", - "line": 1, - "name": "", - "uri": "features/004-failing-background-step.feature" - } -] diff --git a/example-project/json/005-failing-before-hook.feature.java.json b/example-project/json/005-failing-before-hook.feature.java.json deleted file mode 100755 index a876dbf5..00000000 --- a/example-project/json/005-failing-before-hook.feature.java.json +++ /dev/null @@ -1,50 +0,0 @@ -[ - { - "description": "", - "elements": [ - { - "before": [ - { - "match": { - "location": "Steps.java:6" - }, - "result": { - "duration": 2264732, - "error_message": "java.lang.RuntimeException: failing before hook\n\tat Steps.lambda$new$0(Steps.java:7)\n\tat cucumber.runtime.java8.Java8HookDefinition.lambda$execute$0(Java8HookDefinition.java:51)\n\tat cucumber.runtime.Timeout.timeout(Timeout.java:16)\n\tat cucumber.runtime.java8.Java8HookDefinition.execute(Java8HookDefinition.java:47)\n\tat cucumber.runtime.HookDefinitionMatch.runStep(HookDefinitionMatch.java:17)\n\tat cucumber.runner.UnskipableStep.executeStep(UnskipableStep.java:22)\n\tat cucumber.api.TestStep.run(TestStep.java:83)\n\tat cucumber.api.TestCase.run(TestCase.java:58)\n\tat cucumber.runner.Runner.runPickle(Runner.java:80)\n\tat cucumber.runtime.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:140)\n\tat cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:68)\n\tat cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:23)\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\n\tat cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:73)\n\tat cucumber.api.junit.Cucumber.runChild(Cucumber.java:99)\n\tat cucumber.api.junit.Cucumber.runChild(Cucumber.java:41)\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\n\tat cucumber.api.junit.Cucumber$1.evaluate(Cucumber.java:108)\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)\n\tat org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)\n\tat org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)\n\tat org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)\n\tat org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)\n", - "status": "failed" - } - } - ], - "description": "", - "id": ";", - "keyword": "Scenario", - "line": 3, - "name": "", - "steps": [ - { - "keyword": "Given ", - "line": 4, - "match": { - "location": "NativeConstructorAccessorImpl.java:-2" - }, - "name": "this step passes", - "result": { - "status": "skipped" - } - } - ], - "tags": [ - { - "name": "@failing-before" - } - ], - "type": "scenario" - } - ], - "id": "", - "keyword": "Feature", - "line": 1, - "name": "", - "uri": "features/005-failing-before-hook.feature" - } -] diff --git a/example-project/json/005-failing-before-hook.feature.js.json b/example-project/json/005-failing-before-hook.feature.js.json deleted file mode 100755 index 847252cb..00000000 --- a/example-project/json/005-failing-before-hook.feature.js.json +++ /dev/null @@ -1,51 +0,0 @@ -[ - { - "elements": [ - { - "id": ";", - "keyword": "Scenario", - "line": 3, - "name": "", - "steps": [ - { - "hidden": true, - "keyword": "Before", - "match": { - "location": "support/js/env.js:11" - }, - "result": { - "duration": 7, - "error_message": "Error: failing before hook\n at World. (/Users/aslakhellesoy/git/cucumber/cucumber-json-formatter/support/js/env.js:12:12)", - "status": "failed" - } - }, - { - "arguments": [], - "keyword": "Given ", - "line": 4, - "match": { - "location": "support/js/env.js:3" - }, - "name": "this step passes", - "result": { - "status": "skipped" - } - } - ], - "tags": [ - { - "line": 2, - "name": "@failing-before" - } - ], - "type": "scenario" - } - ], - "id": "", - "keyword": "Feature", - "line": 1, - "name": "", - "tags": [], - "uri": "features/005-failing-before-hook.feature" - } -] diff --git a/example-project/json/006-three-failing-scenarios.feature.java.json b/example-project/json/006-three-failing-scenarios.feature.java.json deleted file mode 100755 index 16ab2c55..00000000 --- a/example-project/json/006-three-failing-scenarios.feature.java.json +++ /dev/null @@ -1,117 +0,0 @@ -[ - { - "description": "", - "elements": [ - { - "description": "", - "id": ";", - "keyword": "Scenario", - "line": 2, - "name": "", - "steps": [ - { - "keyword": "Given ", - "line": 3, - "match": { - "location": "NativeConstructorAccessorImpl.java:-2" - }, - "name": "this step fails", - "result": { - "duration": 185308461, - "error_message": "java.lang.RuntimeException: this step failed\n\tat Steps.lambda$new$2(Steps.java:14)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat cucumber.runtime.Utils$1.call(Utils.java:40)\n\tat cucumber.runtime.Timeout.timeout(Timeout.java:16)\n\tat cucumber.runtime.Utils.invoke(Utils.java:34)\n\tat cucumber.runtime.java8.Java8StepDefinition.execute(Java8StepDefinition.java:106)\n\tat cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:40)\n\tat cucumber.api.TestStep.executeStep(TestStep.java:102)\n\tat cucumber.api.TestStep.run(TestStep.java:83)\n\tat cucumber.api.TestCase.run(TestCase.java:58)\n\tat cucumber.runner.Runner.runPickle(Runner.java:80)\n\tat cucumber.runtime.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:140)\n\tat cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:68)\n\tat cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:23)\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\n\tat cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:73)\n\tat cucumber.api.junit.Cucumber.runChild(Cucumber.java:99)\n\tat cucumber.api.junit.Cucumber.runChild(Cucumber.java:41)\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\n\tat cucumber.api.junit.Cucumber$1.evaluate(Cucumber.java:108)\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)\n\tat org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)\n\tat org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)\n\tat org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)\n\tat org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)\n\tat ✽.this step fails(features/006-three-failing-scenarios.feature:3)\n", - "status": "failed" - } - } - ], - "type": "scenario" - }, - { - "description": "", - "id": ";", - "keyword": "Scenario", - "line": 5, - "name": "", - "steps": [ - { - "keyword": "Given ", - "line": 6, - "match": { - "location": "NativeConstructorAccessorImpl.java:-2" - }, - "name": "this step passes", - "result": { - "duration": 157258, - "status": "passed" - } - }, - { - "keyword": "When ", - "line": 7, - "match": { - "location": "NativeConstructorAccessorImpl.java:-2" - }, - "name": "this step fails", - "result": { - "duration": 394395, - "error_message": "java.lang.RuntimeException: this step failed\n\tat Steps.lambda$new$2(Steps.java:14)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat cucumber.runtime.Utils$1.call(Utils.java:40)\n\tat cucumber.runtime.Timeout.timeout(Timeout.java:16)\n\tat cucumber.runtime.Utils.invoke(Utils.java:34)\n\tat cucumber.runtime.java8.Java8StepDefinition.execute(Java8StepDefinition.java:106)\n\tat cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:40)\n\tat cucumber.api.TestStep.executeStep(TestStep.java:102)\n\tat cucumber.api.TestStep.run(TestStep.java:83)\n\tat cucumber.api.TestCase.run(TestCase.java:58)\n\tat cucumber.runner.Runner.runPickle(Runner.java:80)\n\tat cucumber.runtime.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:140)\n\tat cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:68)\n\tat cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:23)\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\n\tat cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:73)\n\tat cucumber.api.junit.Cucumber.runChild(Cucumber.java:99)\n\tat cucumber.api.junit.Cucumber.runChild(Cucumber.java:41)\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\n\tat cucumber.api.junit.Cucumber$1.evaluate(Cucumber.java:108)\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)\n\tat org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)\n\tat org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)\n\tat org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)\n\tat org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)\n\tat ✽.this step fails(features/006-three-failing-scenarios.feature:7)\n", - "status": "failed" - } - } - ], - "type": "scenario" - }, - { - "description": "", - "id": ";", - "keyword": "Scenario", - "line": 9, - "name": "", - "steps": [ - { - "keyword": "Given ", - "line": 10, - "match": { - "location": "NativeConstructorAccessorImpl.java:-2" - }, - "name": "this step passes", - "result": { - "duration": 89901, - "status": "passed" - } - }, - { - "keyword": "When ", - "line": 11, - "match": { - "location": "NativeConstructorAccessorImpl.java:-2" - }, - "name": "this step passes", - "result": { - "duration": 51566, - "status": "passed" - } - }, - { - "keyword": "Then ", - "line": 12, - "match": { - "location": "NativeConstructorAccessorImpl.java:-2" - }, - "name": "this step fails", - "result": { - "duration": 282902, - "error_message": "java.lang.RuntimeException: this step failed\n\tat Steps.lambda$new$2(Steps.java:14)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat cucumber.runtime.Utils$1.call(Utils.java:40)\n\tat cucumber.runtime.Timeout.timeout(Timeout.java:16)\n\tat cucumber.runtime.Utils.invoke(Utils.java:34)\n\tat cucumber.runtime.java8.Java8StepDefinition.execute(Java8StepDefinition.java:106)\n\tat cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:40)\n\tat cucumber.api.TestStep.executeStep(TestStep.java:102)\n\tat cucumber.api.TestStep.run(TestStep.java:83)\n\tat cucumber.api.TestCase.run(TestCase.java:58)\n\tat cucumber.runner.Runner.runPickle(Runner.java:80)\n\tat cucumber.runtime.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:140)\n\tat cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:68)\n\tat cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:23)\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\n\tat cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:73)\n\tat cucumber.api.junit.Cucumber.runChild(Cucumber.java:99)\n\tat cucumber.api.junit.Cucumber.runChild(Cucumber.java:41)\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\n\tat cucumber.api.junit.Cucumber$1.evaluate(Cucumber.java:108)\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)\n\tat org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)\n\tat org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)\n\tat org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)\n\tat org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)\n\tat ✽.this step fails(features/006-three-failing-scenarios.feature:12)\n", - "status": "failed" - } - } - ], - "type": "scenario" - } - ], - "id": "", - "keyword": "Feature", - "line": 1, - "name": "", - "uri": "features/006-three-failing-scenarios.feature" - } -] diff --git a/example-project/json/006-three-failing-scenarios.feature.js.json b/example-project/json/006-three-failing-scenarios.feature.js.json deleted file mode 100755 index f252a826..00000000 --- a/example-project/json/006-three-failing-scenarios.feature.js.json +++ /dev/null @@ -1,121 +0,0 @@ -[ - { - "elements": [ - { - "id": ";", - "keyword": "Scenario", - "line": 2, - "name": "", - "steps": [ - { - "arguments": [], - "keyword": "Given ", - "line": 3, - "match": { - "location": "support/js/env.js:7" - }, - "name": "this step fails", - "result": { - "duration": 9, - "error_message": "Error: this step failed\n at World. (/Users/aslakhellesoy/git/cucumber/cucumber-json-formatter/support/js/env.js:8:12)", - "status": "failed" - } - } - ], - "tags": [], - "type": "scenario" - }, - { - "id": ";", - "keyword": "Scenario", - "line": 5, - "name": "", - "steps": [ - { - "arguments": [], - "keyword": "Given ", - "line": 6, - "match": { - "location": "support/js/env.js:3" - }, - "name": "this step passes", - "result": { - "duration": 1, - "status": "passed" - } - }, - { - "arguments": [], - "keyword": "When ", - "line": 7, - "match": { - "location": "support/js/env.js:7" - }, - "name": "this step fails", - "result": { - "error_message": "Error: this step failed\n at World. (/Users/aslakhellesoy/git/cucumber/cucumber-json-formatter/support/js/env.js:8:12)", - "status": "failed" - } - } - ], - "tags": [], - "type": "scenario" - }, - { - "id": ";", - "keyword": "Scenario", - "line": 9, - "name": "", - "steps": [ - { - "arguments": [], - "keyword": "Given ", - "line": 10, - "match": { - "location": "support/js/env.js:3" - }, - "name": "this step passes", - "result": { - "duration": 1, - "status": "passed" - } - }, - { - "arguments": [], - "keyword": "When ", - "line": 11, - "match": { - "location": "support/js/env.js:3" - }, - "name": "this step passes", - "result": { - "status": "passed" - } - }, - { - "arguments": [], - "keyword": "Then ", - "line": 12, - "match": { - "location": "support/js/env.js:7" - }, - "name": "this step fails", - "result": { - "duration": 1, - "error_message": "Error: this step failed\n at World. (/Users/aslakhellesoy/git/cucumber/cucumber-json-formatter/support/js/env.js:8:12)", - "status": "failed" - } - } - ], - "tags": [], - "type": "scenario" - } - ], - "id": "", - "keyword": "Feature", - "line": 1, - "name": "", - "tags": [], - "uri": "features/006-three-failing-scenarios.feature" - } -] diff --git a/example-project/json/006-three-failing-scenarios.feature.rb.json b/example-project/json/006-three-failing-scenarios.feature.rb.json deleted file mode 100755 index dd9fd81e..00000000 --- a/example-project/json/006-three-failing-scenarios.feature.rb.json +++ /dev/null @@ -1,117 +0,0 @@ -[ - { - "description": "", - "elements": [ - { - "description": "", - "id": ";", - "keyword": "Scenario", - "line": 2, - "name": "", - "steps": [ - { - "keyword": "Given ", - "line": 3, - "match": { - "location": "/Users/aslakhellesoy/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/cucumber-core-1.5.0/lib/cucumber/core/test/filters/activate_steps_for_self_test.rb:18" - }, - "name": "this step fails", - "result": { - "duration": 23594, - "error_message": "Cucumber::Core::Test::Filters::ActivateStepsForSelfTest::Failure (Cucumber::Core::Test::Filters::ActivateStepsForSelfTest::Failure)\n/Users/aslakhellesoy/.rbenv/versions/2.4.0/bin/bundle:22:in `load'\n/Users/aslakhellesoy/.rbenv/versions/2.4.0/bin/bundle:22:in `
'\nfeatures/006-three-failing-scenarios.feature:3:in `Given this step fails'", - "status": "failed" - } - } - ], - "type": "scenario" - }, - { - "description": "", - "id": ";", - "keyword": "Scenario", - "line": 5, - "name": "", - "steps": [ - { - "keyword": "Given ", - "line": 6, - "match": { - "location": "/Users/aslakhellesoy/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/cucumber-core-1.5.0/lib/cucumber/core/test/filters/activate_steps_for_self_test.rb:22" - }, - "name": "this step passes", - "result": { - "duration": 2679, - "status": "passed" - } - }, - { - "keyword": "When ", - "line": 7, - "match": { - "location": "/Users/aslakhellesoy/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/cucumber-core-1.5.0/lib/cucumber/core/test/filters/activate_steps_for_self_test.rb:18" - }, - "name": "this step fails", - "result": { - "duration": 46261, - "error_message": "Cucumber::Core::Test::Filters::ActivateStepsForSelfTest::Failure (Cucumber::Core::Test::Filters::ActivateStepsForSelfTest::Failure)\n/Users/aslakhellesoy/.rbenv/versions/2.4.0/bin/bundle:22:in `load'\n/Users/aslakhellesoy/.rbenv/versions/2.4.0/bin/bundle:22:in `
'\nfeatures/006-three-failing-scenarios.feature:7:in `When this step fails'", - "status": "failed" - } - } - ], - "type": "scenario" - }, - { - "description": "", - "id": ";", - "keyword": "Scenario", - "line": 9, - "name": "", - "steps": [ - { - "keyword": "Given ", - "line": 10, - "match": { - "location": "/Users/aslakhellesoy/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/cucumber-core-1.5.0/lib/cucumber/core/test/filters/activate_steps_for_self_test.rb:22" - }, - "name": "this step passes", - "result": { - "duration": 1826, - "status": "passed" - } - }, - { - "keyword": "When ", - "line": 11, - "match": { - "location": "/Users/aslakhellesoy/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/cucumber-core-1.5.0/lib/cucumber/core/test/filters/activate_steps_for_self_test.rb:22" - }, - "name": "this step passes", - "result": { - "duration": 942, - "status": "passed" - } - }, - { - "keyword": "Then ", - "line": 12, - "match": { - "location": "/Users/aslakhellesoy/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/cucumber-core-1.5.0/lib/cucumber/core/test/filters/activate_steps_for_self_test.rb:18" - }, - "name": "this step fails", - "result": { - "duration": 15431, - "error_message": "Cucumber::Core::Test::Filters::ActivateStepsForSelfTest::Failure (Cucumber::Core::Test::Filters::ActivateStepsForSelfTest::Failure)\n/Users/aslakhellesoy/.rbenv/versions/2.4.0/bin/bundle:22:in `load'\n/Users/aslakhellesoy/.rbenv/versions/2.4.0/bin/bundle:22:in `
'\nfeatures/006-three-failing-scenarios.feature:12:in `Then this step fails'", - "status": "failed" - } - } - ], - "type": "scenario" - } - ], - "id": "", - "keyword": "Feature", - "line": 1, - "name": "", - "uri": "features/006-three-failing-scenarios.feature" - } -] diff --git a/example-project/json/003-one-failing-scenario.feature.java.json b/example-project/json/fail.json similarity index 98% rename from example-project/json/003-one-failing-scenario.feature.java.json rename to example-project/json/fail.json index 0439fb61..4cbabff9 100755 --- a/example-project/json/003-one-failing-scenario.feature.java.json +++ b/example-project/json/fail.json @@ -7,7 +7,7 @@ "id": ";", "keyword": "Scenario", "line": 2, - "name": "", + "name": "This is a failing scenario", "steps": [ { "keyword": "Given ", @@ -29,7 +29,7 @@ "id": "", "keyword": "Feature", "line": 1, - "name": "", + "name": "Feature 2", "uri": "features/003-one-failing-scenario.feature" } ] diff --git a/example-project/json/001-one-passing-scenario.feature.java.json b/example-project/json/pass.json similarity index 82% rename from example-project/json/001-one-passing-scenario.feature.java.json rename to example-project/json/pass.json index 513416ce..2e5388ec 100755 --- a/example-project/json/001-one-passing-scenario.feature.java.json +++ b/example-project/json/pass.json @@ -7,7 +7,7 @@ "id": ";", "keyword": "Scenario", "line": 2, - "name": "", + "name": "This scenario passes", "steps": [ { "keyword": "Given ", @@ -22,13 +22,18 @@ } } ], + "tags": [ + { + "name": "@test" + } + ], "type": "scenario" } ], "id": "", "keyword": "Feature", "line": 1, - "name": "", + "name": "Feature 1", "uri": "features/001-one-passing-scenario.feature" } ] diff --git a/example-project/json/005-failing-before-hook.feature.rb.json b/example-project/json/skip.json similarity index 58% rename from example-project/json/005-failing-before-hook.feature.rb.json rename to example-project/json/skip.json index 86716401..50cd8304 100755 --- a/example-project/json/005-failing-before-hook.feature.rb.json +++ b/example-project/json/skip.json @@ -6,11 +6,11 @@ "before": [ { "match": { - "location": "support/ruby/env.rb:7" + "location": "Steps.java:6" }, "result": { - "duration": 371128, - "error_message": "Failing before hook (RuntimeError)\n./support/ruby/env.rb:8:in `Before'", + "duration": 1452264732, + "error_message": "java.lang.RuntimeException: failing before hook\n\tat Steps.lambda$new$0(Steps.java:7)\n\tat cucumber.runtime.java8.Java8HookDefinition.lambda$execute$0(Java8HookDefinition.java:51)", "status": "failed" } } @@ -19,24 +19,27 @@ "id": ";", "keyword": "Scenario", "line": 3, - "name": "", + "name": "This is a skipped scenario", "steps": [ { "keyword": "Given ", "line": 4, "match": { - "location": "/Users/aslakhellesoy/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/cucumber-core-1.5.0/lib/cucumber/core/test/filters/activate_steps_for_self_test.rb:22" + "location": "NativeConstructorAccessorImpl.java:-2" }, - "name": "this step passes", + "name": "this step is skipped", "result": { + "duration": 2552264732, "status": "skipped" } } ], "tags": [ { - "line": 2, "name": "@failing-before" + }, + { + "name": "@test" } ], "type": "scenario" @@ -45,7 +48,7 @@ "id": "", "keyword": "Feature", "line": 1, - "name": "", + "name": "Feature 2", "uri": "features/005-failing-before-hook.feature" } ]