소스 정보
- 저장소
- mitkox/ai-coding-factory
- 최근 소스 활동
- 2026년 1월 9일 18:48
- 감지된 SKILL.md 언어
- 영어
- 스타
- 170
- 포크
- 63
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/mitkox/ai-coding-factory --skill net-testing명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| name | net-testing |
| description | Set up comprehensive testing framework with xUnit, Moq, and TestContainers |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":".net-developers","framework":"xunit","tools":"moq, testcontainers, coverlet"} |
I set up complete testing framework:
Use this skill when:
tests/
├── {ProjectName}.UnitTests/
│ ├── Domain/
│ │ ├── ProductTests.cs
│ │ └── ValueObjectTests.cs
│ ├── Application/
│ │ ├── ServiceTests.cs
│ │ └── HandlerTests.cs
│ └── Infrastructure/
│ └── RepositoryTests.cs
├── {ProjectName}.IntegrationTests/
│ ├── Api/
│ │ └── ProductControllerTests.cs
│ └── Database/
│ └── DatabaseTests.cs
└── {ProjectName}.E2ETests/
└── UserFlowTests.cs
Common/
├── TestDataBuilders/
├── Fakes/
└── TestHelpers.cs
<PackageReference Include="xunit" Version="2.6.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Moq" Version="4.20.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="AutoFixture" Version="4.18.0" />
<PackageReference Include="Testcontainers" Version="3.5.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.0" />
<PackageReference Include="coverlet.collector" Version="6.0.0">
all
runtime; build; native; contentfiles; analyzers
public class ProductServiceTests
{
private readonly Mock<IProductRepository> _mockRepo;
private readonly ProductService _service;
public ProductServiceTests()
{
_mockRepo = new Mock<IProductRepository>();
_service = new ProductService(_mockRepo.Object);
}
[Fact]
public async Task GetProductById_WhenProductExists_ReturnsProduct()
{
// Arrange
var productId = Guid.NewGuid();
var expectedProduct = new Product { Id = productId, Name = "Test" };
_mockRepo.Setup(r => r.GetByIdAsync(productId))
.ReturnsAsync(expectedProduct);
// Act
var result = await _service.GetProductByIdAsync(productId);
// Assert
result.Should().NotBeNull();
result.Should().BeEquivalentTo(expectedProduct);
}
[Theory]
[InlineData("")]
[InlineData(null)]
public async Task CreateProduct_WhenNameInvalid_ThrowsException(string name)
{
// Arrange
var request = new CreateProductRequest { Name = name, Price = 10 };
// Act
Func<Task> act = () => _service.CreateProductAsync(request);
// Assert
await act.Should().ThrowAsync<ValidationException>();
}
}
public class ProductControllerTests : IClassFixture<ApiTestFixture>
{
private readonly HttpClient _client;
public ProductControllerTests(ApiTestFixture fixture)
{
_client = fixture.Client;
}
[Fact]
[Trait("Category", "Integration")]
public async Task GetProducts_ReturnsOk()
{
// Act
var response = await _client.GetAsync("/api/products");
// Assert
response.StatusCode.Should().Be(HttpStatusCode.OK);
}
}
public class ApiTestFixture : IAsyncLifetime
{
public HttpClient Client { get; private set; }
private readonly TestcontainersContainer _container;
public ApiTestFixture()
{
_container = new TestcontainersBuilder<PostgreSqlTestcontainer>()
.WithDatabase("testdb")
.WithUsername("test")
.WithPassword("test")
.Build();
}
public async Task InitializeAsync()
{
await _container.StartAsync();
var webHost = WebApplicationFactory<Program>()
.WithWebHostBuilder(builder =>
{
builder.ConfigureServices(services =>
{
});
});
Client = webHost.CreateClient();
}
{
_container.StopAsync();
}
}
<CollectCoverage>true</CollectCoverage>
<CoverletOutputFormat>opencover</CoverletOutputFormat>
<CoverageThreshold>80</CoverageThreshold>
Set up test framework for:
- Unit tests with xUnit and Moq
- Integration tests with TestContainers
- Code coverage with Coverlet
- Test data builders
- Test helpers and utilities
I will generate complete test infrastructure.