crud-test

Validate PowerX CRUD services for required Go unit tests.

357|65|Updated Jul 29, 2022
One-click install
npx skills add https://github.com/ArtisanCloud/PowerX --skill crud-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: crud-test
Source: https://github.com/ArtisanCloud/PowerX/tree/main/.codex/skills/crud/test
Command: npx skills add https://github.com/ArtisanCloud/PowerX --skill crud-test

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures that every CRUD service in PowerX is backed by unit tests and that repository implementations have optional integration tests, preventing gaps in test coverage.

Core Features & Use Cases

  • Rule‑based validation: Defines a ruleset that checks for the presence of *_service_test.go files, proper import usage, and optional repository test constraints.
  • Templates: Provides skeleton Go test files for service and repository testing to accelerate developer onboarding.
  • Use Case: When adding a new domain service, run this skill to automatically verify test compliance and generate starter test code.

Quick Start

Invoke the crud-test skill to evaluate your PowerX codebase for required CRUD service tests.

Frequently Asked Questions about crud-test

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

FAQPage Schema
How do I enforce unit test coverage for Go CRUD services?

To enforce unit test coverage for Go CRUD services, you can apply a ruleset that checks for the presence of required *_service_test.go files and validates import usage within your internal/service packages.

How do I validate repository integration tests in a Go application?

You can validate repository integration tests in a Go application by applying optional rule checks to the internal/repository package, verifying test constraints against temporary databases.

What is the best way to generate skeleton test files for Go services?

The best way to generate skeleton test files for Go services is to use a template-based skill that provides starter code for service and repository testing, accelerating developer onboarding.

Does this test validation tool work with PowerX internal packages?

Yes, this test validation tool works specifically with PowerX internal packages, applying rule checks to the internal/service and internal/repository Go packages to verify test compliance.

When do I need to check for test file presence and import constraints?

You need to check for test file presence and import constraints when adding a new domain service, ensuring that every CRUD service is backed by unit tests to prevent coverage gaps.