-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
cucumber2: incorrect selection of scenarios to execute #778
Comments
Confirmed.
=> vs
=> |
Hi @mattwynne I've made a naïve attempt to fix the duplication issue stated above. It may only be a partial solution to the overall problem so please let me know if any other improvements can be made. |
That may sound stupid but my gut feeling tells me, it would be more reliable to build Additionally I see reordering of executed scenarios is happening even when selection is like this: |
@akostadinov I cannot reproduce "2.x would not execute a scenario specified by the line number of a
|
@akostadinov thanks so much for reporting this, and all the other bugs you've raised. I've closed the ticket, but if the problem of selecting a step still seems to be an issue for you, can you open a new ticket? |
As you can see, the bugs I've reported are happening when 2 or more scenarios from a file are specified. I can't understand why the issue has been closed? Was it fixed? 2 days ago it was not. |
@akostadinov as I understand it, there are two bugs reported in this ticket:
I think (1) has been fixed by a8050ee which is in the master branch, and will be released soon. Do you have the facility to test from the master branch? @brasmusson has said he can't reproduce (2). That's why I closed the ticket. Does that make sense? 😄 |
Thanks, I understand better now. But the third one I reported - reordering of scenarios executed (see end of my original post) has not been addressed. Or I don't see how it would be. But I'll be able to test after the holidays. |
Oh sorry I didn't clearly understand about that one. OK. Can you create a separate ticket for that with a specific example? If I get a chance I'll test it myself too. |
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. |
Hello, I'm running cucumber like:
cucumber example.feature:lineX example.feature:lineY
With cucumber 1.3 I see scenarios executed in the order specified once. With cucumber 2 beta3 I see that first it runs the scenario with lower line number first and then it runs the same two scenarios a second time.
The order of execution is a problem because we are using an external test management system to synchronize scenario execution across multiple runners. But it is not ideal for the purpose and when having scenarios in same order on all runners, there are duplicate runs. To avoid that we reorder scenarios randomly and collisions are unlikely. With cucumber reordering execution, this may not work well.
Executing scenarios multiple times just doesn't make sense to me.
There is one more thing that I'm not sure is a bug but is a difference between 1.3 and 2.x. When specifying a line number of a scenario step, then 1.3 would execute the whole scenario. With 2.0 nothing gets executed.
To summarize:
step
from that scenarioThe text was updated successfully, but these errors were encountered: