Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags for examples in scenario outlines is not supported #1642

Closed
yopasa94 opened this issue Apr 15, 2021 · 2 comments
Closed

Tags for examples in scenario outlines is not supported #1642

yopasa94 opened this issue Apr 15, 2021 · 2 comments

Comments

@yopasa94
Copy link

yopasa94 commented Apr 15, 2021

Cucumber Version: 7.0.1
Node Version: 14.14.31
Operating System: Win 10

Scenario Outline: Sample test case
Given this is a test case
When I have the following data table
| <scenario_example> |
Then a JSON report will be generated

@critical
Examples:
| scenario_example |
| Test Child Tag 1 |

@blocker
Examples:
| scenario_example |
| Test Child Tag 2 |

When I run the test case above with the tag: "--tags @critical" and "-f json:reports/cucumber-report.json", the test case runs successfully, but the following error is thrown:
``[chrome #1]
[chrome #1] 8 scenarios (8 passed)
[chrome #1] 48 steps (48 passed)
[chrome #1] 2m58.724s (executing steps: 2m58.252s)
[chrome #1] [14:22:34] I/runnerCli - Cannot read property 'location' of undefined

[14:22:34] I/testLogger -

[14:22:34] E/launcher - Runner process exited unexpectedly with error code: 1
[14:22:34] I/launcher - 0 instance(s) of WebDriver still running
Is there any way to support tag at the example level (it was supported in the past )? why was that feature removed ?
image

@charlierudolph
Copy link
Member

We have this feature that should be validating this is working. I'm not sure why all out examples are verify it failing though. Let me review that feature.

In the mean time can you provide a more complete example of what you are running? (ie a repo with the source and the exact command to run to reproduce the error). Based on the sample output it appears you are not running just basic cucumber-js

@charlierudolph
Copy link
Member

Okay reviewing the feature, it appears the issue is the JSON formatter. Going to close this as a duplicate of #1621

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants