Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CLI with the new SelectedTests using Pydantic #4

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

antonio-amjr
Copy link
Contributor

Description

Updated the CLI code to support the new "SelectedTests" parameter.
This change is related to the Backend PR#16 that replace the old chain of dictionaries with Pydantic objects.

Also, some async client closure call were modified to guarantee that those are closed, even when an error occurs, using "finally" from the "try-except" operations.

Finally, the socket messages received to update the tests being run had no ID as expected (e.g. "test_suite_execution_id"). The message was carrying only the index of the correspondent Suite, Case or Step. The code was adapted for those index (e.g. "test_suite_execution_index").

Socket Message for Suite Update:
type=<MessageTypeEnum.TEST_UPDATE: 'test_update'> payload=TestUpdate(test_type='Test Suite', body=TestSuiteUpdate(state=<TestStateEnum.EXECUTING: 'executing'>, errors=[], failures=None, test_suite_execution_index=0))

Developper Testing Files

Test Run:
test_run_2023-11-09-17:22:12.log

Test config json file example:
tests.json

@antonio-amjr antonio-amjr changed the base branch from main to v1.3-TE1 November 23, 2023 13:53
@antonio-amjr antonio-amjr changed the base branch from v1.3-TE1 to main November 23, 2023 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants