Skip to content

feat: Auto-launch browser for test results and fix CreateTestResult panic#425

Open
Manar-Elhabbal7 wants to merge 2 commits into
microcks:masterfrom
Manar-Elhabbal7:feature/auto-open-browser-test
Open

feat: Auto-launch browser for test results and fix CreateTestResult panic#425
Manar-Elhabbal7 wants to merge 2 commits into
microcks:masterfrom
Manar-Elhabbal7:feature/auto-open-browser-test

Conversation

@Manar-Elhabbal7
Copy link
Copy Markdown

Description

This enhancement introduces a mechanism to automatically launch the full visual report in the Microcks UI web browser instead of clicking it manually to enhance DX

It completes the "Feedback Loop" for the developer. You run the test, and the evidence opens automatically in your
browser.

Changes introduced:

  1. test command integration: The CLI now automatically launches the system browser to the specific testResultID
    URL upon completion.
  2. Stability Fix: Refactored pkg/connectors/microcks_client.go to handle non-200 HTTP responses. Previously, the
    CLI would panic (crash) if the serviceId was wrong or the server had an error.
  3. Command-line Control: Added the --launch-browser flag to the test command.

Will this be a breaking change?
No.

Implementation ideas


Signed-off-by: Manar Elhabbal <manarelhabbal619@gmail.com>
Signed-off-by: Manar Elhabbal <manarelhabbal619@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant