Skip to content

Commit 9f69015

Browse files
committed
docs(skills): add Coverage & Test Results section to ado-cli skill
New section explains how to list, show, and publish test results and code coverage with examples for each command. Also adds --build-id to the publish command in the frontmatter.
1 parent 31e57f1 commit 9f69015

1 file changed

Lines changed: 25 additions & 1 deletion

File tree

priv/skills/ado-cli/SKILL.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ commands:
7070
- ado skills install # embed all skills to LLM agents
7171
- ado test-results list PROJECT
7272
- ado test-results show PROJECT RUN_ID
73-
- ado test-results publish PROJECT --name N --file coverage.xml
73+
- ado test-results publish PROJECT --name N --file coverage.xml [--build-id ID]
7474
- ado test-coverage show PROJECT BUILD_ID
7575
---
7676

@@ -224,6 +224,30 @@ ado completion bash | eval
224224
ado completion zsh > "${fpath[1]}/_ado"
225225
```
226226

227+
## Coverage & Test Results
228+
229+
Fetch and publish test results and code coverage from Azure DevOps:
230+
231+
```bash
232+
# List recent test runs (with pass/fail counts)
233+
ado test-results list MyProject
234+
235+
# Filter by build ID and limit results
236+
ado test-results list MyProject --build-id 99 --top 10
237+
238+
# Show a specific test run with outcome breakdowns
239+
ado test-results show MyProject 42
240+
241+
# Show code coverage for a build (visual bar chart)
242+
ado test-coverage show MyProject 99
243+
244+
# Publish Cobertura XML / JUnit results to a build
245+
ado test-results publish MyProject --name "CI Tests" \
246+
--file coverage.cobertura.xml --build-id 99
247+
```
248+
249+
Use `--json` on any command for machine-readable output.
250+
227251
## Help
228252

229253
Every command and subcommand supports `--help`:

0 commit comments

Comments
 (0)