test-review

Review backend test suites to replace loose assertions with strict field-level equality checks.

2|1|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/is-ivanov/rpm-ddd --skill test-review-is-ivanov
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-review
Source: https://github.com/is-ivanov/rpm-ddd/tree/main/.opencode/skills/test-review
Command: npx skills add https://github.com/is-ivanov/rpm-ddd --skill test-review-is-ivanov

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps improve weak or overly permissive tests by replacing loose assertions such as contains, isNotNull, and isNotEmpty with strict, field-level equality checks that verify exact behavior.

Core Features & Use Cases

  • Strict Assertion Reviews: Detects vague validation patterns and guides replacement with precise assertions on parsed response fields.
  • Layer-Specific Test Analysis: Adapts review guidance for use case tests, REST controller tests, persistence tests, acceptance tests, and other backend testing scenarios.
  • Verification Workflow: Follows a checklist-driven review process that identifies violations, applies assertion improvements, and confirms behavior remains unchanged by rerunning tests.

Quick Start

Ask the AI to use the test-review skill to inspect a test class and replace loose assertions with exact field-by-field equality checks.

Frequently Asked Questions about test-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I replace loose assertions like contains and isNotNull with strict equality checks in backend tests?

To replace loose assertions with strict equality checks, review automated tests to find vague validation patterns and guide their replacement with exact field-by-field equality checks on parsed response values. This ensures backend tests verify precise behavior across use case and controller layers.

What is strict assertion review for backend test suites?

Strict assertion review for backend test suites is a checklist-driven pattern scanning process that detects overly permissive validations like isNotEmpty. It enforces complete field coverage by replacing them with precise equality checks to verify exact parsed outputs and confirm unchanged behavior through test reruns.

Can I apply test review rules to both REST controller and persistence test layers?

Yes, you can apply test review rules to REST controller and persistence test layers. The review process adapts its guidance for various backend testing scenarios, including use case tests and acceptance tests, to ensure complete field coverage and strict validation across all layers.

What's the best way to verify test behavior remains unchanged after strengthening assertions?

The best way to verify unchanged behavior after strengthening assertions is to follow a verification workflow that reruns tests. This checklist-driven process identifies loose validation violations, applies exact field-level equality improvements, and confirms behavior remains stable by executing the test suite.

When do I need to scan for loose validation patterns in automated tests?

You need to scan for loose validation patterns when response fields or outputs are only partially verified. If backend tests rely on vague checks like contains or isNotNull instead of exact parsed values, a pattern-based review identifies these violations to enforce complete field coverage.

Does strengthening test assertions require specific dependencies or components?

Strengthening test assertions does not require specific dependencies or components. The review process applies checklist-based pattern scanning and layer-specific rules directly to existing backend test suites, requiring only test reruns to confirm that behavior remains unchanged after applying strict equality checks.