-
Notifications
You must be signed in to change notification settings - Fork 344
0009 specification traverser
This ADR has been recorded retrospectively.
Superceded by 9. Specification Traverser
Specification and scenario has a method to traverse through all the items in it. It has an Specification traverser and a scenario traverser. The state of the iterator is lost when when we switch between specification and scenario traverser.
Have specification traverse over an item queue. The item queue provided will have a flattened list of all items under specification and its children. The flattening of list will be done using depth first approach.
The specification traverser method will take a queue, iterate and process the items. The queue can provide the state the traverser is in.
Instead of maintaining two traverser interfaces, create an interface to process items.
Copyright © ThoughtWorks Inc.