Skip to content

first @notused Scenario in feature caused exception #447

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

Closed
k4124k opened this issue Jan 8, 2013 · 6 comments
Closed

first @notused Scenario in feature caused exception #447

k4124k opened this issue Jan 8, 2013 · 6 comments

Comments

@k4124k
Copy link

k4124k commented Jan 8, 2013

Caught: java.lang.ArrayIndexOutOfBoundsException: -1
java.lang.ArrayIndexOutOfBoundsException: -1
at gherkin.formatter.JSONFormatter.getFeatureElement(JSONFormatter.java:147)
at gherkin.formatter.JSONFormatter.addHook(JSONFormatter.java:104)
at gherkin.formatter.JSONFormatter.before(JSONFormatter.java:95)
at cucumber.runtime.Utils$1.call(Utils.java:44)
at cucumber.runtime.Timeout.timeout(Timeout.java:12)
at cucumber.runtime.Utils.invoke(Utils.java:40)
at cucumber.runtime.RuntimeOptions$2.invoke(RuntimeOptions.java:138)
at $Proxy5.before(Unknown Source)
at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:207)
at cucumber.runtime.Runtime.runHooks(Runtime.java:187)
at cucumber.runtime.Runtime.runBeforeHooks(Runtime.java:178)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:32)
at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:117)
at cucumber.runtime.Runtime.run(Runtime.java:108)
at cucumber.runtime.Runtime.run(Runtime.java:96)
at cucumber.runtime.Runtime$run.call(Unknown Source)

ps:i am using cucumber-jvm 1.1.2-snapshot

change tag from important to notused in examples\groovy-calculator\src\test\resources\divesion.feature
after run featuren by cmd , then the exception will appear

@aslakhellesoy
Copy link
Contributor

Really? That's all you have to say?

@k4124k
Copy link
Author

k4124k commented Jan 8, 2013

add this terminated execution of feature.

@aslakhellesoy
Copy link
Contributor

Either you added instructions at the end or I missed them because it blended in with your stack trace. Can you triple-backtick using github flavored markdown to make this legible please?

k4124k added a commit to k4124k/cucumber-jvm that referenced this issue Jan 8, 2013
make first scenario to be skipped!
@k4124k
Copy link
Author

k4124k commented Jan 8, 2013

OK. There's a sample.
k4124k@091847a
k4124k@d58cbf1

@mpkorstanje
Copy link
Contributor

It appears that this has been fixed with the resolution of #476. I can't quite confirm this as there is no proper reproducer but the stack trace is otherwise identical.

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants