add-test

Generate unit, component, API, and frontend tests for .NET and SvelteKit.

230|29|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/fpindej/netrock --skill add-test-fpindej
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-test
Source: https://github.com/fpindej/netrock/tree/main/.claude/skills/add-test
Command: npx skills add https://github.com/fpindej/netrock --skill add-test-fpindej

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of writing various types of tests for your .NET and SvelteKit projects, ensuring code quality and reliability.

Core Features & Use Cases

  • Unit Tests: For pure logic in backend layers (Shared, Domain, Application).
  • Component Tests: For backend services with mocked dependencies.
  • API Integration Tests: For testing the full HTTP pipeline, including routes, authentication, and validation.
  • Validator Tests: For testing FluentValidation rules without starting the test server.
  • Frontend Unit Tests: For utility functions and pure logic in SvelteKit's $lib/ directory.
  • Frontend Component Tests: For Svelte components involving DOM interactions.
  • Use Case: After implementing a new API endpoint, use this Skill to quickly generate the necessary API integration tests to verify its functionality, authentication, and response contracts.

Quick Start

Use the add-test skill to generate API integration tests for the OrdersController.

Frequently Asked Questions about add-test

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

FAQPage Schema
How do I generate API integration tests for my .NET controllers?

To generate API integration tests for .NET controllers, use this Skill to automatically create test files that verify the full HTTP pipeline, including routes, authentication, and validation rules.

What's the best way to create unit tests for SvelteKit utility functions?

Creating unit tests for SvelteKit utility functions is handled by generating frontend unit tests targeting pure logic within the `$lib/` directory to ensure code reliability.

Can I generate component tests for Svelte components involving DOM interactions?

Yes, you can generate frontend component tests specifically designed for Svelte components to verify and simulate DOM interactions effectively.

Does this support testing FluentValidation rules without starting the test server?

Testing FluentValidation rules without starting the test server is fully supported through the generation of dedicated validator tests that check rules directly.

How do I mock dependencies for backend component tests in .NET?

Mocking dependencies for backend component tests in .NET is achieved by applying structured mocking strategies provided during the test file creation process to isolate services.