# Aldelar Context Aware Vision Grounded Kb Agent Pytest Coverage

> Pytest Coverage Analysis

- Skill: `tomevault-io/aldelar-context-aware-vision-grounded-kb-agent-pytest-covera` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/aldelar-context-aware-vision-grounded-kb-agent-pytest-covera`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/aldelar-context-aware-vision-grounded-kb-agent-pytest-covera/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/aldelar-context-aware-vision-grounded-kb-agent-pytest-covera

---


# Pytest Coverage Analysis

The goal is for tests to cover all lines of code.

## Workflow

### 1. Generate Coverage Report

```bash
pytest --cov --cov-report=annotate:cov_annotate
```

For a specific module:

```bash
pytest --cov=your_module_name --cov-report=annotate:cov_annotate
```

For specific tests:

```bash
pytest tests/test_your_module.py --cov=your_module_name --cov-report=annotate:cov_annotate
```

### 2. Review Annotated Files

Open the `cov_annotate` directory. There will be one file per source file.

- Files with 100% coverage → skip
- Files with <100% coverage → open and review

### 3. Find Uncovered Lines

Lines starting with `!` (exclamation mark) are **not covered by tests**. Add tests to cover these lines.

### 4. Iterate

Keep running the tests and improving coverage until all lines are covered.

## Project Context

This project has three services with independent test suites:

| Service | Test Command | Source |
|---------|-------------|--------|
| Agent | `cd src/agent && pytest` | `src/agent/` |
| Functions | `cd src/functions && pytest` | `src/functions/` |
| Web App | `cd src/web-app && pytest` | `src/web-app/` |

Run all: `make dev-test`

Example for agent coverage:
```bash
cd src/agent
pytest --cov=agent --cov-report=annotate:cov_annotate tests/
```

---
> Source: [aldelar/context-aware-vision-grounded-kb-agent](https://github.com/aldelar/context-aware-vision-grounded-kb-agent) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-16 -->

