setup-container-tests

Create Vitest unit and integration test scaffolding for containerized services.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Edgame2/castiel2 --skill setup-container-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-container-tests
Source: https://github.com/Edgame2/castiel2/tree/main/.cursor/skills/setup-container-tests
Command: npx skills add https://github.com/Edgame2/castiel2 --skill setup-container-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creates test structure and boilerplate following ModuleImplementationGuide.md Section 12 testing requirements (80% coverage, Vitest). Generates unit test structure, creates integration test templates, sets up test fixtures, mocks external dependencies, tests tenant isolation, tests event publishing/consuming, and sets up Vitest configuration. Use when setting up tests for new services, adding test coverage, or creating integration tests.

Core Features & Use Cases

  • Automated test scaffolding for new services, including unit and integration test templates
  • Preconfigured fixtures, mocks, and test setup to enforce tenant isolation and event publishing checks
  • Standardized Vitest configuration and test layout that meets the ModuleImplementationGuide Section 12 requirements

Quick Start

Use the setup-container-tests skill to scaffold the unit and integration test templates for a new service.

Frequently Asked Questions about setup-container-tests

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

FAQPage Schema
How do I scaffold Vitest tests for a new containerized service?

Scaffolding Vitest tests for a containerized service involves generating a standardized tests directory, vitest.config.mjs, and templates for unit and integration tests including fixtures and mocks.

What is included in Vitest integration test templates for containerized services?

Vitest integration test templates include preconfigured fixtures, mocks for external dependencies, tenant isolation checks, and event publishing/consuming templates to ensure comprehensive service coverage.

How do I configure Vitest coverage thresholds to meet ModuleImplementationGuide Section 12?

Configuring Vitest coverage thresholds for Section 12 requires setting an 80% coverage target in the generated vitest.config.mjs, which this skill automatically enforces during the test scaffolding process.

Can I use this test scaffolding for adding coverage to existing services?

Yes, you can use this scaffolding for existing services. It generates standardized test layouts and integration templates specifically designed to support adding test coverage and expanding test suites.

Does the Vitest test setup include mocking external dependencies?

Yes, the Vitest test setup includes mocking external dependencies. The generated test structure automatically creates mocks and fixtures to isolate services during unit and integration testing.

When do I need to generate test templates for event publishing and consuming?

You need event publishing and consuming test templates when setting up integration tests for containerized services, ensuring event-driven workflows are validated alongside standard unit tests and tenant isolation checks.