net-testing

Create standardized .NET test projects with xUnit, Moq, and TestContainers.

165|62|Updated Jan 9, 2026
One-click install
npx skills add https://github.com/mitkox/ai-coding-factory --skill net-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: net-testing
Source: https://github.com/mitkox/ai-coding-factory/tree/main/.opencode/skill/net-testing
Command: npx skills add https://github.com/mitkox/ai-coding-factory --skill net-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a ready-made .NET testing scaffold that standardizes unit, integration, and end-to-end testing workflows.

Core Features & Use Cases

  • xUnit-based test projects with Moq for mocking
  • TestContainers for integration tests against real dependencies in containers
  • Coverlet for code coverage
  • FluentAssertions for readable assertions
  • AutoFixture for test data generation
  • Suitable for creating unit, integration, and E2E tests across projects

Quick Start

Create a new test solution and projects, e.g., dotnet new sln -n MyApp.Tests; dotnet new xunit -n MyApp.UnitTests; dotnet new xunit -n MyApp.IntegrationTests Add packages: dotnet add package Moq; dotnet add package Testcontainers; dotnet add package coverlet.collector; dotnet add package FluentAssertions; dotnet add package AutoFixture Run tests: dotnet test --collect:"XPlat Code Coverage"

Frequently Asked Questions about net-testing

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

FAQPage Schema
How do I set up a .NET testing project with xUnit and Moq?

You can set up .NET integration tests with TestContainers by adding the Testcontainers package to your xUnit project. This skill scaffolds tests that run against real dependencies in isolated containers, ensuring reliable integration testing scenarios across your solution.

How do I generate code coverage reports in a .NET test solution?

To generate code coverage reports in a .NET test solution, add the coverlet.collector package and run tests using the dotnet test --collect:"XPlat Code Coverage" command. This skill configures Coverlet to standardize coverage collection across your unit and integration tests.

Can I use FluentAssertions and AutoFixture in an xUnit testing scaffold?

Yes, you can use FluentAssertions and AutoFixture in an xUnit testing scaffold. This skill's ready-made testing workflow includes FluentAssertions for readable assertions and AutoFixture for automated test data generation alongside xUnit and Moq.

What is the best way to structure unit, integration, and E2E tests in .NET?

The best way to structure unit, integration, and E2E tests in .NET is to separate them into distinct xUnit projects within a single solution. This skill provides a standardized scaffold that organizes these testing workflows, injecting mocks with Moq and running integration tests via TestContainers.