Skills

Software Test Execution

Run scoped tests for a TDD slice, determine the appropriate test framework and command...

Install

npx skills add stencila/stencila --skill software-test-execution -g -a claude-code -y
Repository
stencila/stencila914
Category
Testing
Updated
3d ago
License
Apache-2.0
Context cost
Mediumabout 2,638 tokens
Runs scripts
No, instructions only

What it does

Run scoped tests for a TDD slice, determine the appropriate test framework and command, and report structured pass/fail results. Use when tests need to be executed after writing, implementing, or refactoring code. Reads test metadata, discovers the test framework if needed, executes the scoped test command, parses output into structured results, and reports whether tests passed or failed. Handles compilation errors, missing dependencies, timeouts, and works with any language and test framework.

Overview

Execute scoped tests for a TDD slice and report structured results. This skill runs only the tests relevant to the current slice, parses the output, and reports a clear pass/fail result with details.

This skill does not write or modify any code or test files. It only reads, executes, and reports.

Required Inputs

This skill requires the following information to operate:

InputRequiredDescription
Test commandNoCommand to run the scoped tests (discovered if not provided)
Test filesNoList of test file paths (used to scope the command if needed)
Slice scopeNoDescription of what the slice covers (for context in the report)
Target packagesNoPackages, crates, or directories involved (for command discovery)
Slice nameNoName or identifier of the current slice (for the report header)

When used standalone, these inputs come from the user or the agent's prompt. When used within a workflow, the workflow's stage prompt will specify how to obtain them.

Outputs

After completing its work, this skill reports:

OutputDescription
ResultWhether the tests passed or failed (Pass / Fail)
ReportA structured report with counts, failure details, and notes

Steps

1. Gather test metadata

Ensure the available inputs are collected:

  • The test command is the primary input, if present, use it directly
  • Test files and target packages are used as fallbacks for constructing a test command if no command is provided
  • Slice name and scope provide context for the report
Read the whole SKILL.md on GitHub

More in Testing