testing

Write, debug, and analyze test coverage with NUnit, NSubstitute, and AutoFixture.

2.1k|36|Updated Feb 4, 2021
One-click install
npx skills add https://github.com/recyclarr/recyclarr --skill testing-recyclarr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/recyclarr/recyclarr/tree/main/.opencode/skills/testing
Command: npx skills add https://github.com/recyclarr/recyclarr --skill testing-recyclarr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and tools for writing, debugging, and improving tests, ensuring code quality and reliability.

Core Features & Use Cases

  • Test Writing Standards: Follows best practices for NUnit, NSubstitute, and AutoFixture.
  • TDD Workflow: Guides users through an integration-first TDD approach.
  • Debugging Strategies: Offers systematic methods for diagnosing and fixing test failures.
  • Coverage Analysis: Tools and commands to identify and address testing gaps.
  • E2E Test Execution: Instructions for running end-to-end tests with various resource providers.

Quick Start

Use the testing skill to run all unit and integration tests with verbose output.

Frequently Asked Questions about testing

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

FAQPage Schema
How do I write integration tests using NUnit and NSubstitute?

NUnit and NSubstitute integration tests are written by following an integration-first TDD workflow. This approach provides structured standards and best practices to guide you through creating robust unit and integration tests efficiently.

What's the best way to debug failing NUnit tests?

The best way to debug failing NUnit tests is to apply systematic debugging strategies. These methods offer a structured approach to diagnose test failures, identify root causes, and fix issues in your test code or implementation.

Can I run E2E tests against containerized services?

Yes, you can run E2E tests against containerized services. The testing workflow supports efficient end-to-end test execution with configurable resource providers, allowing you to validate your application within isolated containerized environments.

How do I identify testing gaps with coverage analysis?

You identify testing gaps using dedicated coverage analysis tools and commands. These utilities analyze your test execution to highlight untested code paths, helping you address coverage gaps and improve overall software reliability.

Does AutoFixture work with NUnit for test data generation?

AutoFixture works with NUnit to automate test data generation. The testing framework supports AutoFixture alongside NSubstitute, reducing manual setup overhead and streamlining the creation of test cases.