Skip to content

testmd run does not emit a shareable report URL in NDJSON output #59

@hardikshah197

Description

@hardikshah197

Summary

After kane-cli testmd run --agent, the final test_md_summary / test_md_done events include session_id, testcase_id, project_id, and upload.succeeded: true — but no public shareable URL. PR templates and CI gates that require pasting a kane-cli shareable report URL force users to manually open test-manager.lambdatest.com, navigate to the test case, and click the "Share" button to generate one.

Observed

{"type":"test_md_summary","overall_status":"failed","duration_s":974,"steps":{...},"upload":{"performed":true,"succeeded":true},"commit":{"committed":false,"reason":"run_failed","testcase_id":"01KSM..."}}
{"type":"test_md_done","overall_status":"failed","duration_s":974,"session_id":"d9c..."}

No report_url / share_url / public_link field anywhere in stdout.

Suggested fixes

  • Emit a report_url (or share_url) field in test_md_summary and test_md_done events, especially in --agent mode where the output is meant to be machine-parseable.
  • For runs that successfully uploaded (upload.succeeded: true), kane-cli already has enough info to construct the public URL — surface it.
  • Even on status: failed runs, the report URL is useful for PR review (lets reviewers see the screenshots/timeline). Don't gate it on success.

Environment

  • kane-cli 0.2.9
  • macOS 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions