-
Notifications
You must be signed in to change notification settings - Fork 220
Add "Example" keyword for Scenario #200
base: master
Are you sure you want to change the base?
Conversation
I'd like to be able to write "Example:" instead of "Scenario:". It seems inconsistent that I can call the scenarios of a scenario outline "Examples", but I can't call a scenario itself "Example". I'd also argue that the word "Example" has more obvious connotations than "Scenario" for a stakeholder new to cucumber - especially if they're already familiar with the process of "Specification by Example".
+1 We're doing specification by example, right? Next step: specification as a synonym for feature? :) |
@moonmaster9000 so people would be able to write:
That's a very heavy overloading of the word Example - 3 different keywords. I think that would be very confusing. |
-1 to proposal no need and confusing. Example is a generic term and can be applied to a number of things e.g. Maths Problems Examples: So the argument that scenario outline -> examples is inconsistent is spurious, as is the argument that stakeholders can't comprehend 'scenario'. |
+1 I seem to remember @kevinrutherford sending a PR years ago with |
You who are +1 - what do you think about the triple overloading of Example? Not going to cause confusion? |
Does the current triple overloading of "Scenario" cause confusion? Currently you can write: Feature: ...
Scenario: ...
Given ...
Scenario Outline: ...
Given ...
Scenarios:
| .. | .. |
| .. | .. | I just want to replace "Scenario" with "Example" for the reasons stated in my commit. |
@aslakhellesoy I personally use the words scenario and example interchangeably. I don't see what harm this would do. Just because the keywords are there, doesn't mean you have to use them. |
-1 When we are writing Acceptance Test that mean we write Scenario not an Example. I do not see any reasons to rename it |
Any chance of this getting merged? |
Any strong objections? Otherwise I suggest we JFDI. |
If this change is worth its salt the people who adopt it will probably start talking about examples instead of scenarios. Scenarios and Examples will be used interchangeably in gherkin, conversation, articles etc. I'm worried that this will cause confusion - especially to newcomers. I do prefer "Specification by Example" and the vocabulary it uses over "Behaviour Driven Development" and its vocabulary, but not at the cost of confusing users about how to use Cucumber. I think the ideal situation would be to remove Scenario* in favour of Example* across the board, but I think it's too late to do that, especially since we have 40 translations. Other tools (syntax highlighters and editors) will also have to catch up. So while I agree with this change in principle I see far too many negative consequences. If I merge this in I would like to do it with a BIG warning in the History/Changelog saying that this might be reverted in future release if it seems to be causing confusion. I guess knowing whether or not it does will become clear after a few months - monitoring forums, blog posts, tweets etc. How does that sound? |
I really hate the idea of JFDI. Better would be to 'only do it if it makes things better'. In this case I think all the -1's and you're jfdi are telling you that at best its a marginal call. All best Andrew Andrew Premdas From: Matt Wynne [email protected] Any strong objections? Otherwise I suggest we JFDI. |
hi @aslakhellesoy, your proposal sounds reasonable to me. Looking forward to seeing how this plays out! |
There is no way to contain both expression? Especially because the two word is interchangeable. So there is no way to support Scenario (to not break backward compatibility, and make -1 people more happy) and Example too? |
-1 Aren't we over-complicating things? It can cause a lot of confusion, especially since we are already using "Examples" to write the examples for the scenario outlines. It bugs me that we use "Scenarios" to give the examples to scenario outlines too, because the keyword "Scenario" is already there and serves a very different purpose.
it is bound to create confusion in their mind wrt the meanings of the two VERY DIFFERENT but seemingly same words Example and Examples mean. Let's keep it as clean and unambiguous as possible. |
+1. To me, it's much easier to understand the concept of an "Example" over the concept of a "Scenario." Maybe my fault, but I only understood how to properly name examples when I started to mentally replace "Scenario" with "Example." But given there is enough opposition to this, maybe there could be a "specification by example" translation that would be part of the official distribution, which would allow people to use it easily while keeping the "Scenario" default? |
I'd like to be able to write "Example:" instead of "Scenario:".
It seems inconsistent that I can call the scenarios of a scenario outline "Examples", but I can't call a scenario itself "Example".
I'd also argue that the word "Example" has more obvious connotations than "Scenario" for a stakeholder new to cucumber - especially if they're already familiar with the process of "Specification by Example".