# Get Test Results

> Use when user wants to get the test results or test failures for the current branch

- Skill: `tomevault-io/get-test-results` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/get-test-results`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/get-test-results/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/get-test-results

---


# Skill Instructions

Use the following command to get the branch name

```bash
gh pr view --json headRefName -q .headRefName
```

Use the following command to get the workflow run id

```bash
gh run list -b <branch-name> -L 1 --json databaseId -q .[0].databaseId
```

To download the test results for the workflow run, use the following command

```bash
gh run download <workflow-run-id>--output <output-file-path> -p test-results-*
```

The test results file in trx format will be inside the downloaded zip file.

---
> Source: [jaredpar/complog](https://github.com/jaredpar/complog) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-29 -->

