djcrankypants / spock

Automatically exported from code.google.com/p/spock
0 stars 0 forks source link

@Stepwise behavior inheritance to subclasses #183

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Describe the enhancement you have in mind.
Make sure the @Stepwise behavior is also inherited by subclasses.

Which particular problem would this enhancement solve for you?
Below is an example scenario

1) read xml
2) validate xml. if xml is not valid then stop executing step 3 and 4
3) unmarshall xml to pojo
4) assert that data is properly copied over

I will have more than 100 feature tests with the same flow as above and I want 
all of them to not execute steps 3 and 4 if step is not satisfied. I defined 
steps 1 and 2 in base spec and marked it with @Stepwise. I then added a sub 
spec and defined steps 3 and 4. But steps 3 and 4 are still being executed 
eventhough step 2 from base class is failing.

Please provide any additional information below. You can also assign
labels.

Original issue reported on code.google.com by yarav...@gmail.com on 26 May 2011 at 6:33

GoogleCodeExporter commented 8 years ago
Duplicate of 220 (https://code.google.com/p/spock/issues/detail?id=220).

Original comment by David.W....@gmail.com on 15 Apr 2014 at 11:22