Skip to content

Add test session result drilldown#1339

Open
thebiglabasky wants to merge 1 commit into
mainfrom
herve/test-session-result-drilldown
Open

Add test session result drilldown#1339
thebiglabasky wants to merge 1 commit into
mainfrom
herve/test-session-result-drilldown

Conversation

@thebiglabasky
Copy link
Copy Markdown
Contributor

@thebiglabasky thebiglabasky commented Jun 2, 2026

Summary

Adds checkly test-sessions get --result/-r so users can drill into a single recorded test session result with the same detail formatting used by checkly checks get --result.

Changes

  • Adds a REST client method for GET /v1/test-sessions/:id/results/:resultId.
  • Reuses the existing check-result detail formatter for test-session result output.
  • Adds a shared renderCommandHints() formatter for aligned command hints and uses it across result drilldowns plus existing list/detail navigation hint formatters.
  • Covers detail, JSON, watch behavior, and REST path mapping with focused tests.

Backend dependency

The /test-sessions/<id>/results/<result-id> endpoint has been deployed, so this CLI PR is not blocked on an unmerged backend change.

Validation

  • pnpm exec vitest --run ./src/formatters/__tests__/check-result-detail.spec.ts ./src/formatters/__tests__/render.spec.ts ./src/formatters/__tests__/test-sessions.spec.ts ./src/commands/__tests__/test-sessions-get.spec.ts ./src/rest/__tests__/test-sessions.spec.ts
  • pnpm exec eslint src/formatters/render.ts src/formatters/check-result-detail.ts src/formatters/checks.ts src/formatters/test-sessions.ts src/formatters/alert-channels.ts src/formatters/account-members.ts src/formatters/status-pages.ts src/formatters/batch-stats.ts src/commands/checks/get.ts
  • pnpm --filter checkly exec tsc --noEmit --pretty false
  • CHECKLY_SKIP_AUTH=1 ./bin/run test-sessions get --help
  • git diff --check

@thebiglabasky thebiglabasky changed the title [codex] Add test session result drilldown Add test session result drilldown Jun 2, 2026
@thebiglabasky thebiglabasky marked this pull request as ready for review June 2, 2026 08:21
@thebiglabasky thebiglabasky force-pushed the herve/test-session-result-drilldown branch from a146be5 to 549077b Compare June 2, 2026 08:27
@thebiglabasky thebiglabasky marked this pull request as draft June 2, 2026 08:28
@thebiglabasky thebiglabasky changed the title Add test session result drilldown [codex] Add test session result drilldown Jun 2, 2026
@thebiglabasky thebiglabasky marked this pull request as ready for review June 2, 2026 08:33
@thebiglabasky thebiglabasky changed the title [codex] Add test session result drilldown Add test session result drilldown Jun 2, 2026
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