diff --git a/lib/trailblazer/workflow.rb b/lib/trailblazer/workflow.rb index ac01c8f..783d3da 100644 --- a/lib/trailblazer/workflow.rb +++ b/lib/trailblazer/workflow.rb @@ -11,8 +11,7 @@ module Workflow require "trailblazer/workflow/collaboration/lane" require "trailblazer/workflow/collaboration/messages" require "trailblazer/workflow/event" -require "trailblazer/workflow/state/discovery" -require "trailblazer/workflow/state/discovery/testing" +# require "trailblazer/workflow/state/discovery/testing" require "trailblazer/workflow/test/plan" diff --git a/lib/trailblazer/workflow/test/plan.rb b/lib/trailblazer/workflow/test/plan.rb index 764b900..7ab15cb 100644 --- a/lib/trailblazer/workflow/test/plan.rb +++ b/lib/trailblazer/workflow/test/plan.rb @@ -111,6 +111,20 @@ def call(discovered_states, **options) start_position_combined_column = format_positions_column(all_start_position_labels, **options) + + all_expected_positions_labels = discovered_states.collect do |row| + row[:suspend_configuration].lane_positions.collect do |activity, task| + [ + activity, + Discovery::Present.readable_name_for_suspend_or_terminus(activity, task, **options) + ] + end + end + + expected_position_combined_column = format_positions_column(all_expected_positions_labels, **options) + + + rows = discovered_states.collect.with_index do |row, index| positions_before, start_position = row[:positions_before] @@ -121,10 +135,13 @@ def call(discovered_states, **options) "start configuration", # start_configuration(positions_before, **options) start_position_combined_column[index], + + "expected reached configuration", + expected_position_combined_column[index], ] end - Discovery::Present::Table.render(["triggered catch", "start configuration"], rows) + Discovery::Present::Table.render(["triggered catch", "start configuration", "expected reached configuration"], rows) end def start_position_label(start_position, row, **options)