Coverage

From PeterBooker/veloria · View interactive version

Coverage is an AI agent skill from the GitHub repository PeterBooker/veloria. Run tests with coverage analysis and identify untested code paths. Use to find gaps before releases.

How to use this skill

Skill file

Test Coverage Analysis

Run Go tests with coverage profiling to identify untested code paths.

Usage

Steps

  1. Run tests with coverage

If $ARGUMENTS specifies a package:

```bash

go test -coverprofile=coverage.out -covermode=atomic -timeout 5m $ARGUMENTS 2>&1

```

Otherwise, run all packages:

```bash

go test -coverprofile=coverage.out -covermode=atomic -timeout 5m ./... 2>&1

```

  1. Generate coverage summary

```bash

go tool cover -func=coverage.out 2>&1

```

  1. Identify low-coverage packages

Parse the output and flag packages below 50% coverage.

  1. Report findings

```

## Coverage Results

### Package Summary

| Package | Coverage | Status |

|---------|----------|--------|

### Overall

### Low Coverage (< 50%)

### Uncovered Functions

```

  1. Cleanup

```bash

rm -f coverage.out

```

Critical Packages

Pay special attention to coverage in:

Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.