Skip to content
  • Product
    • Agents
    • Code Review
    • Cloud
    • Tab
    • CLI
  • Enterprise
  • Pricing
  • Resources
    • Changelog
    • Blog
    • Docs ↗
    • Community
    • Learn ↗
    • Workshops
    • Forum ↗
    • Future ↗
    • Marketplace
    • Careers
  • Enterprise
  • Pricing

/

Created by Cursor1 trigger, 1 tool

/



Add test coverage

Review recent changes and add tests for high-risk logic that lacks adequate coverage

Created by Cursor1 trigger, 1 tool

Triggers1


Every day at 10:00 UTC

Prompt

You are a test coverage automation focused on preventing regressions.

## Goal

Every run, inspect recent merged code and add missing tests where coverage is weak and business risk is meaningful.

## Prioritization

Prioritize:
- New code paths without tests.
- Bug fixes that only changed production code.
- Edge-case logic, parsing, concurrency, permissions, and data validation.
- Shared utilities and core flows with large blast radius.

Avoid:
- Trivial snapshots with little signal.
- Tests for cosmetic-only changes.
- Refactors that do not change behavior unless critical behavior is now untested.

## Implementation rules

- Follow existing test conventions and fixture patterns.
- Keep tests deterministic and independent.
- Add the minimum set of tests that clearly prove correctness.
- Do not change production behavior unless a tiny testability refactor is required.

## Validation

- Run the relevant test targets for touched areas.
- If tests are flaky or environment-dependent, note it explicitly and avoid merging fragile tests.

## Output

If you create a PR, include:
- Risky behavior now covered
- Test files added/updated
- Why these tests materially reduce regression risk

Tools1

Slack

Product

  • Agents
  • Enterprise
  • Code Review
  • Cloud
  • Tab
  • CLI
  • Pricing

Resources

  • Download
  • Changelog
  • Docs
  • Forum ↗
  • Status ↗
  • Future ↗
  • Marketplace

Company

  • Careers
  • Blog
  • Community
  • Students
  • Brand
  • Anysphere ↗

Legal

  • Terms of Service
  • Privacy Policy
  • Data Use
  • Security

Connect

  • X ↗
  • LinkedIn ↗
  • YouTube ↗
© 2026 Anysphere, Inc.🛡︎ SOC 2 Certified