Test Coverage Review
areed1192/finance-news-aggregator
Audit, plan, write, and verify unit tests for Python projects using pytest.
Guide for adding unit tests to AReaL. An agent skill from areal-project/AReaL.
$ npx skills add areal-project/AReaL --skill add-unit-tests -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install areal-project/AReaL add-unit-tests --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/areal-project/AReaL.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/add-unit-tests .claude/skills/add-unit-tests && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "add-unit-tests" agent skill from https://github.com/areal-project/AReaL/tree/main/.agents/skills/add-unit-tests into .claude/skills/add-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-unit-tests", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/areal-project/AReaL/tree/main/.agents/skills/add-unit-testsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add areal-project/AReaL --skill add-unit-tests -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install areal-project/AReaL add-unit-tests --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/areal-project/AReaL.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/add-unit-tests .agents/skills/add-unit-tests && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "add-unit-tests" agent skill from https://github.com/areal-project/AReaL/tree/main/.agents/skills/add-unit-tests into .agents/skills/add-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-unit-tests", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add areal-project/AReaL --skill add-unit-tests -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install areal-project/AReaL add-unit-tests --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/areal-project/AReaL.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/add-unit-tests .cursor/skills/add-unit-tests && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "add-unit-tests" agent skill from https://github.com/areal-project/AReaL/tree/main/.agents/skills/add-unit-tests into .cursor/skills/add-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-unit-tests", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/areal-project/AReaL.git --path .agents/skills/add-unit-tests--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add areal-project/AReaL --skill add-unit-tests -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install areal-project/AReaL add-unit-tests --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/areal-project/AReaL.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/add-unit-tests .gemini/skills/add-unit-tests && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "add-unit-tests" agent skill from https://github.com/areal-project/AReaL/tree/main/.agents/skills/add-unit-tests into .gemini/skills/add-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-unit-tests", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install areal-project/AReaL add-unit-testsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add areal-project/AReaL --skill add-unit-tests -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/areal-project/AReaL.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/add-unit-tests .github/skills/add-unit-tests && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "add-unit-tests" agent skill from https://github.com/areal-project/AReaL/tree/main/.agents/skills/add-unit-tests into .github/skills/add-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-unit-tests", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add areal-project/AReaL --skill add-unit-tests -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install areal-project/AReaL add-unit-tests --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/areal-project/AReaL.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/add-unit-tests .opencode/skills/add-unit-tests && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "add-unit-tests" agent skill from https://github.com/areal-project/AReaL/tree/main/.agents/skills/add-unit-tests into .opencode/skills/add-unit-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-unit-tests", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
add-unit-testsGuide for adding unit tests to AReaL. An agent skill from areal-project/AReaL.
Add Unit Tests is an agent skill from areal-project/AReaL. Guide for adding unit tests to AReaL. Use when user wants to add tests for new functionality or increase test coverage.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Unit testing and Test coverage. It works with pytest. The repository describes itself as: The RL Bridge for LLM-based Agent Applications. Made Simple & Flexible. The licence is Apache-2.0.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit a642540. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
uvpythonpytestFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Add Unit Tests loads about 1.8k tokens when it runs. Until then it costs about 34 tokens; SKILL.md has 434 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from areal-project/AReaL at commit a642540, republished under its Apache-2.0 licence (© areal-project). 434 words, ~1,755 tokens.
.claude/skills/add-unit-tests/SKILL.md (or your agent's skills folder).Add unit tests to AReaL following the project's testing conventions.
This skill is triggered when:
AReaL has two main test categories:
| Test Type | Purpose | Location Pattern | How It Runs |
|---|---|---|---|
| Unit Tests | Test individual functions/modules | tests/test_<module>_<feature>.py | Directly via pytest |
| Distributed Tests | Test distributed/parallel behavior | tests/torchrun/run_*.py | Via torchrun (called by pytest subprocess) |
Note: All tests are invoked via pytest. Distributed tests use torchrun but are
still called from pytest test files.
Create test file with naming convention: test_<module>_<feature>.py
import pytest
import torch
# Import the module to test
from areal.dataset.gsm8k import get_gsm8k_sft_dataset
from tests.utils import get_dataset_path # Optional test utilities
# For mocking tokenizer: from unittest.mock import MagicMockFollow Arrange-Act-Assert pattern:
def test_function_under_condition_returns_expected():
"""Test that function returns expected value under condition."""
# Arrange
input_data = 5
expected_output = 10
# Act
result = function_under_test(input_data)
# Assert
assert result == expected_outputUse appropriate pytest markers:
| Marker | When to Use |
|---|---|
@pytest.mark.slow | Test takes > 10 seconds (excluded from CI by default) |
@pytest.mark.ci | Slow test that must run in CI (use with @pytest.mark.slow) |
@pytest.mark.asyncio | Async test functions |
@pytest.mark.skipif(cond, reason=...) | Conditional skip |
@pytest.mark.parametrize(...) | Parameterized tests |
CI Test Strategy:
@pytest.mark.slow: Excluded from CI by default (CI runs pytest -m "not slow")@pytest.mark.slow + @pytest.mark.ci: Slow but must run in CI@pytest.mark.asyncio
async def test_async_function():
result = await async_function()
assert result == expected
@pytest.mark.skipif(not torch.cuda.is_available(), reason="CUDA not available")
def test_gpu_feature():
tensor = torch.tensor([1, 2, 3], device="cuda")
# ... assertions
@pytest.mark.parametrize("batch_size", [1, 4, 16])
def test_with_parameters(batch_size):
# Parameterized test
@pytest.mark.slow
def test_slow_function():
# Excluded from CI by default
@pytest.mark.slow
@pytest.mark.ci
def test_slow_but_required_in_ci():
# Slow but must run in CIFor unit tests that need distributed mocks:
import torch.distributed as dist
def test_distributed_function(monkeypatch):
monkeypatch.setattr(dist, "get_rank", lambda: 0)
monkeypatch.setattr(dist, "get_world_size", lambda: 2)
result = distributed_function()
assert result == expectedAlways skip gracefully when GPU unavailable:
CUDA_AVAILABLE = torch.cuda.is_available()
@pytest.mark.skipif(not CUDA_AVAILABLE, reason="CUDA not available")
def test_gpu_function():
tensor = torch.tensor([1, 2, 3], device="cuda")
# ... assertionstorch.distributed.fake_pg for unit testsdist.get_rank() and dist.get_world_size() explicitlytorch.cuda.empty_cache() in fixturestorch.testing.assert_close() for tensor comparisonrtol/atol explicitly for numerical testsassert tensor.equal() - no useful error message| Test File | Description | Key Patterns |
|---|---|---|
tests/test_utils.py | Utility function tests | Fixtures, parametrized tests |
tests/test_examples.py | Integration tests with dataset loading | Dataset path resolution, success pattern matching |
tests/test_fsdp_engine_nccl.py | Distributed tests | Torchrun integration |
test_*.py naming@pytest.mark.skipif for GPU teststorch.testing.assert_close() not
assert tensor.equal()torch.cuda.empty_cache()test_<what>_<condition>_<expected> patternThis skill complements other AReaL development skills:
/add-dataset: Add tests for new dataset loaders/add-workflow: Add tests for new workflows/add-reward: Add tests for new reward functions# First check GPU availability (many tests require GPU)
python -c "import torch; print('GPU available:', torch.cuda.is_available())"
# Run specific test file
uv run pytest tests/test_<name>.py
# Skip slow tests (CI default)
uv run pytest -m "not slow"
# Run with verbose output
uv run pytest -v
# Run distributed tests (requires torchrun and multi-GPU)
# Note: Usually invoked via pytest test files
torchrun --nproc_per_node=2 tests/torchrun/run_<test>.py© areal-project, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/add-unit-tests of areal-project/AReaL.
Open the folder on GitHubat commit a642540
Add Unit Tests next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Add Unit Tests this skillareal-project/AReaL | 5.8k | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| Test Coverage Reviewareed1192/finance-news-aggregator | 149 | — | ~2.6k | Automated safety check: Pass | MIT | |
| NIC Testing Patternsnginx/kubernetes-ingress | 5.1k | — | ~2.8k | Automated safety check: Pass | Apache-2.0 | |
| Squid Testing Pythoniusztinpaul/squid | 203 | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| Mutation Test Strength Auditbuildfastwithai/gen-ai-experiments | 785 | — | ~641 | Automated safety check: Pass | MIT | |
| TDD Guidealirezarezvani/claude-skills | 28k | — | ~3.4k | Automated safety check: Pass | MIT |
areed1192/finance-news-aggregator
Audit, plan, write, and verify unit tests for Python projects using pytest.
nginx/kubernetes-ingress
Testing conventions for the NGINX Ingress Controller repo: Go table-driven tests, mandatory snapshot regeneration, Helm tests and Python pytest integration tests.
iusztinpaul/squid
Write and evaluate effective Python tests using pytest. An agent skill from iusztinpaul/squid.
buildfastwithai/gen-ai-experiments
Measures how well a Python pytest suite catches behavior changes through diff-scoped mutation testing, then proposes and verifies tests for surviving mutants.
alirezarezvani/claude-skills
Test-driven development skill for writing unit tests, generating test fixtures and mocks, analyzing coverage gaps, and guiding red-green-refactor workflows across Jest, Pytest, JUnit, Vitest, and…
LeoYeAI/openclaw-master-skills
Test-driven development skill for writing unit tests, generating test fixtures and mocks, analyzing coverage gaps, and guiding red-green-refactor workflows across Jest, Pytest, JUnit, Vitest, and…
areal-project/AReaL
Guide for adding a new dataset loader to AReaL. An agent skill from areal-project/AReaL.
areal-project/AReaL
Guide for adding a new reward function to AReaL. An agent skill from areal-project/AReaL.
areal-project/AReaL
Guide for debugging distributed training issues in AReaL. An agent skill from areal-project/AReaL.
areal-project/AReaL
Guide for adding a new model to the Archon engine. An agent skill from areal-project/AReaL.
areal-project/AReaL
Guide for adding a new RolloutWorkflow to AReaL. An agent skill from areal-project/AReaL.
areal-project/AReaL
Read-only pull request review workflow with risk analysis, targeted checklists, and Codex subagent consultation.
Works with
Categories
Guide for adding unit tests to AReaL. An agent skill from areal-project/AReaL. Add Unit Tests is an agent skill from areal-project/AReaL. Guide for adding unit tests to AReaL.
Add Unit Tests fits situations like: user wants to add tests for new functionality; increase test coverage.
Run `npx skills add areal-project/AReaL --skill add-unit-tests -a claude-code`. Or copy the skill folder (.agents/skills/add-unit-tests in areal-project/AReaL) into .claude/skills/add-unit-tests in your project. Claude Code loads it when a task matches its description.
Run `npx skills add areal-project/AReaL --skill add-unit-tests -a codex`. Or copy the skill folder (.agents/skills/add-unit-tests in areal-project/AReaL) into .agents/skills/add-unit-tests in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add areal-project/AReaL --skill add-unit-tests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-unit-tests, .gemini/skills/add-unit-tests, .github/skills/add-unit-tests and .opencode/skills/add-unit-tests in your project.
Going by SKILL.md and its folder, Add Unit Tests needs the command-line tools its instructions call (uv, python and pytest). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Add Unit Tests is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Add Unit Tests: Test Coverage Review (areed1192/finance-news-aggregator, 149 stars), NIC Testing Patterns (nginx/kubernetes-ingress, 5.1k stars), Squid Testing Python (iusztinpaul/squid, 203 stars) and Mutation Test Strength Audit (buildfastwithai/gen-ai-experiments, 785 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
areal-project (a GitHub organization) maintains it in areal-project/AReaL, which has 5,817 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 8, 2026.
Source: areal-project/AReaL on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.