@(Before|After)Scenario should by default apply to both scenarios parametrized by example table and not

Description

introduced ScenarioType.ANY.

As per title, I think it should not matter whether we are running through an example table or not.

ANY should be the default value for uponType of BeforeScenario and AfterScenario.

In fact, from a domain point of view, there is no difference between a scenario with example table and one without. Is there? They're both scenarios.
A scenario with example table is just a scenario template that at run-time will result in many scenarios actually being run, isn't it?

But in this case, the name of the enum starts to feel bad


As Daniel pointed out, the name is currently misleading.
I found myself wondering what was wrong once I set up a JBehave project with an @BeforeScenario (didn't explicitly specify uponType), and sometimes it worked, sometimes it didn't (depending on which story I was running, with or without example table).

If you agree on this, I will then submit a PR.
Thanks

Assignee

Unassigned

Reporter

Alberto Scotto

Labels

None

Components

Priority

Major
Configure