IntelliJBehave icon indicating copy to clipboard operation
IntelliJBehave copied to clipboard

Structure View does not support Lifecycle steps

Open cse-garylo opened this issue 2 years ago • 1 comments

Applies to plugin v1.57

My story has Lifecycle steps but I do not see them appear in the Structure View

image

I would expect if a story has Lifecycle steps, they would show up in the Structure View accordingly to their Scope.

ex: Lifecycle: Before: Scope: STORY [steps to be executed before each story] Scope: SCENARIO [steps to be executed before each scenario] Scope: STEP [steps to be executed before each scenario step] After: Scope: STEP [steps to be executed after each scenario step] Scope: SCENARIO [steps to be executed after each scenario] Scope: STORY [steps to be executed after each story]

Should display in Structure tree view as:

filename
 V Story
  V Before Story Steps
  V Scenario1
   V Before Scenario Steps
   V Before Each Scenario Step Steps
   Scenario1 Step1
   V After Each Scenario Step Steps
   ...
   V After Scenario Steps
  V Scenario2
   V Before Scenario Steps
   V Before Each Scenario Step Steps
   Scenario1 Step2
   V After Each Scenario Step Steps
   ...
   V After Scenario Steps
  V After Story Steps
  V Examples:

cse-garylo avatar Apr 28 '22 20:04 cse-garylo

Hi @cse-garylo ,

Originally I wanted to include Lifecycles as well, but they are not supported (properly) by the implementation of the JBehave language support, so I excluded them for now.

When I'll have some time to work on this plugin again I'll check if the language support can be extended (or worked around) somehow, but I can't say anything certain at the moment. Until then I'll add a note in the readme about this limitation.

picimako avatar May 05 '22 12:05 picimako