Open DavidREntwistle opened 9 months ago
we are facing similar issue where execution flows and tags are conflicting
Lets say I have 4 test cases:
test1 (I have tagged it as [payment])
test2 (I have tagged it as [payment])
test3 (I have tagged it as [checkout])
test4 (I have tagged it as [checkout])
in my config.yaml I have the following execution order
flowsOrder:
- test1
- test2
- test3
- test4
now when I try to run
maestro test --format junit --include-tags=checkout tests/
I get the following error
java.lang.IllegalStateException: Could not find flows needed for execution in order: test1, test2
as they are not part ofcheckout tag.
can you guys please look into this issue.
Describe the bug If you include tags and exclude tags as well as having flows defined in the execution order of the config.yaml, then the
java.lang.IllegalStateException: Could not find flows needed for execution in order
is thrown:To Reproduce Flow set-up: testFolder/ flow_a.yaml > tags: - includeTest flow_b.yaml > tags: - excludeTest flow_c.yaml > tags: - excludeTest flow_d.yaml > tags: - includeTest
maestro test --include-tags=includeTest --exclude-tags=excludeTest
testFolder/Expected behavior TBC - However, I would expect if we are running against include & exclude tags, that we do not face an exception with the execution order because we have excluded a flow that is also defined in the sequential ordering.
Environment information (please complete the following information):
Additional context If we want to keep an execution order e.g. flow_a > flow_b > flow_c > flow_d but run against different including & excluding tags, I would expect that we would maintain the execution order but omit flows from this execution order that have been excluded with the exclude tag e.g. flow_a >
flow_b > flow_c >flow_d.