dotnet-test
npx skills add https://github.com/icartsh/icartsh_plugin --skill dotnet-test
Agent 安装分布
Skill 文档
.NET Test Skill (Entry Map)
목í: ì íí í ì¤í¸ ì 차를 ìë´í©ëë¤.
ë¹ ë¥¸ ìì (íì¼)
- ì ë í
ì¤í¸ ì¤í â
references/run-unit-tests.md - 커ë²ë¦¬ì§ 리í¬í¸ ìì± â
references/generate-coverage.md - 벤ì¹ë§í¬ ì¤í â
references/run-benchmarks.md
ì¬ì© ì기
- ì ë í ì¤í¸ ì¤í (xUnit, NUnit)
- coverletì ì´ì©í ì½ë 커ë²ë¦¬ì§ 리í¬í¸ ìì±
- BenchmarkDotNetì ì´ì©í ì±ë¥ 벤ì¹ë§í¬ ìí
- í ì¤í¸ ì¤ìí¸ë¥¼ íµí ì½ë ë³ê²½ ì¬í ê²ì¦
- í ì¤í¸ ì¤í ìê° ì¸¡ì
ë¤ìì ê²½ì°ìë ì¬ì©íì§ ë§ì¸ì: ì½ë ë¹ë (dotnet-build), í¬ë§·í (code-format), ëë ì ì ë¶ì (code-analyze)
ì ë ¥ ë° ì¶ë ¥ (Inputs & Outputs)
ì
ë ¥: target (all/project/specific), configuration (Debug/Release), coverage (true/false), project_path (기본ê°: 모ë í
ì¤í¸ íë¡ì í¸)
ì¶ë ¥: í ì¤í¸ ê²°ê³¼ (ì±ê³µ/ì¤í¨ ì¹´ì´í¸), 커ë²ë¦¬ì§ 리í¬í¸ (ìì² ì), 벤ì¹ë§í¬ ê²°ê³¼, ì¢ ë£ ì½ë (0=ì±ê³µ)
ê°ëë ì¼: ./dotnet ëë í 리 ë´ììë§ ìì íë©°, ì¤í¨ ì¬íì ëª íí ë³´ê³ íê³ , íê° ìì´ í ì¤í¸ë¥¼ ê±´ëë°ì§ ììµëë¤.
íì (Navigation)
1. ì ë í
ì¤í¸ ì¤í â references/run-unit-tests.md
- 모ë í ì¤í¸ ì¤í, í¹ì íë¡ì í¸ í ì¤í¸ ì¤í, í ì¤í¸ ì¤í¨ í¸ë¬ë¸ìí
2. 커ë²ë¦¬ì§ 리í¬í¸ ìì± â references/generate-coverage.md
- 커ë²ë¦¬ì§ ë°ì´í° ìì§, 리í¬í¸ ìì± (HTML/Cobertura), 커ë²ë¦¬ì§ ì§í ë¶ì
3. 벤ì¹ë§í¬ ì¤í â references/run-benchmarks.md
- ì±ë¥ 벤ì¹ë§í¬ ìí, ê²°ê³¼ ë¹êµ, ë°ì´í° ê¸°ë° ìµì í
ì¼ë°ì ì¸ í¨í´ (Common Patterns)
모ë í ì¤í¸ ì¤í (ë¹ ë¥¸ ìë)
cd ./dotnet
dotnet test
ìì¸ ì¶ë ¥ì í¬í¨í í ì¤í¸ ì¤í
cd ./dotnet
dotnet test --verbosity normal
í¹ì í ì¤í¸ íë¡ì í¸ ì¤í
cd ./dotnet
dotnet test console-app.Tests/PigeonPea.Console.Tests.csproj
커ë²ë¦¬ì§ì í¨ê» í ì¤í¸ ì¤í
cd ./dotnet
dotnet test --collect:"XPlat Code Coverage"
í ì¤í¸ ì¤í ë° ì»¤ë²ë¦¬ì§ 리í¬í¸ ìì±
cd ./dotnet
dotnet test --collect:"XPlat Code Coverage" --results-directory ./TestResults
# 커ë²ë¦¬ì§ íì¼: ./TestResults/{guid}/coverage.cobertura.xml
ì´ë¦ì¼ë¡ í ì¤í¸ íí°ë§
cd ./dotnet
dotnet test --filter "FullyQualifiedName~FrameTests"
ì¹´í ê³ ë¦¬ë¡ í ì¤í¸ íí°ë§
cd ./dotnet
dotnet test --filter "Category=Unit"
Release 구ì ì¼ë¡ í ì¤í¸ ì¤í
cd ./dotnet
dotnet test --configuration Release
벤ì¹ë§í¬ ì¤í
cd ./dotnet/benchmarks
dotnet run -c Release
í¸ë¬ë¸ìí (Troubleshooting)
í
ì¤í¸ ì¤í¨: Assertion ì¤í¨ì ëí í
ì¤í¸ ì¶ë ¥ì íì¸íì¸ì. ëë²ê¹
ì references/run-unit-tests.md를 참조íì¸ì.
커ë²ë¦¬ì§ 미ìì±: coverlet.collectorê° ì¤ì¹ëì´ ìëì§ íì¸íì¸ì. references/generate-coverage.md를 참조íì¸ì.
벤ì¹ë§í¬ ì¤í ì¤í¨: Release 구ì±ì ì¬ì©í´ì¼ í©ëë¤. references/run-benchmarks.md를 참조íì¸ì.
í
ì¤í¸ ì¤í ìë ì í: í
ì¤í¸ íí° ì¬ì©, ë³ë ¬ ì¤í ëë ë¹ë í --no-build ìµì
ì ì¬ì©íì¸ì.
í ì¤í¸ ë°ê²¬ ì¤í¨: íë¡ì í¸ ì°¸ì¡°ë¥¼ íì¸íê³ í ì¤í¸ íë ììí¬ í¨í¤ì§ê° ì¤ì¹ëì´ ìëì§ íì¸íì¸ì.
ì±ê³µ ì§í (Success Indicators)
Passed! - Failed: 0, Passed: 42, Skipped: 0, Total: 42
í
ì¤í¸ ìí°í©í¸ ìì¹: ./dotnet/TestResults/
커ë²ë¦¬ì§ 리í¬í¸ ìì¹: ./dotnet/TestResults/coverage.cobertura.xml
íµí© (Integration)
í ì¤í¸ ì : dotnet-build (ì½ëê° ë¹ëëìëì§ íì¸) í ì¤í¸ í: code-analyze (ì ì ë¶ì), code-review (íì§ ê²ì¬)
í ì¤í¸ íë ììí¬
ì´ ì ì¥ìë ë¤ìì ì¬ì©í©ëë¤:
- ì ë í ì¤í¸ë¥¼ ìí xUnit (console-app.Tests, shared-app.Tests, windows-app.Tests)
- ì½ë 커ë²ë¦¬ì§ë¥¼ ìí coverlet.collector
- ì±ë¥ 벤ì¹ë§í¬ë¥¼ ìí BenchmarkDotNet
ê´ë ¨ ë§í¬ (Related)
./dotnet/README.md– íë¡ì í¸ êµ¬ì¡°./dotnet/ARCHITECTURE.md– ìí¤í ì².pre-commit-config.yaml– Pre-commit hooksdotnet-buildskill – ë¹ë ì¤í¬