Repository navigation
|
Hi, Is it possible to skip an entire PhaseGroup based on previous tests ? I know test flow execution can be altered using PhaseOption.run_if decorators but they have no context. Is it possible to alter test flow execution based on 'test state' ? With Subtest and PhaseResult.FAIL_SUBTEST one can skip all remaining 'tests' from the Subtest but this results in a FAIL. If possible; an example whould be greatly appreciated Regards, |
Answered by
arsharma1
Feb 1, 2023
Replies: 1 comment 1 reply
|
This is possible. Please see https://github.com/google/openhtf/blob/master/openhtf/core/phase_branches.py#L207. It will require wrapping your PhaseGroup in a Subtest. |
1 reply
Answer selected by
arsharma1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is possible. Please see https://github.com/google/openhtf/blob/master/openhtf/core/phase_branches.py#L207. It will require wrapping your PhaseGroup in a Subtest.