mcpField
C
code-testing-extensions

code-testing-extensions

github.com/dotnetTesting & quality5.8k3.6k installsUpdated 1d ago
Repository

About code-testing-extensions

A reference catalog for code-testing workflows, with language-specific commands, framework conventions, and examples. Read the relevant files directly; the catalog itself is not meant to be invoked as a skill.

Key features

  1. 01Testing guidance for multiple languages
  2. 02Framework-aware commands and layout notes
  3. 03Mocking advice, common errors, and conventions
  4. 04End-to-end testing workflow examples

Use cases

  1. 01Consult guidance before writing tests in a language
  2. 02Identify a project's test framework and commands
  3. 03Use full workflow examples when local test patterns are absent

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/dotnet/skills --skill code-testing-extensions

After installing, type/code-testing-extensionsin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

extensions/
cpp-examples.md
cpp.md
dotnet-examples.md
dotnet.md
go-examples.md
go.md
java-examples.md
java.md
kotlin-examples.md
kotlin.md
powershell-examples.md
powershell.md
python-examples.md
python.md
ruby-examples.md
ruby.md
rust-examples.md
rust.md
swift.md
typescript-examples.md
typescript.md

Details

From the project README

Code Testing Extensions

This reference-only catalog lists bundled guidance for the code-testing pipeline. Read the matching file directly; do not invoke this catalog as a skill. Resource paths are relative to this catalog, not the project workspace.

Available Extension Files

FileLanguageContents
extensions/dotnet.md.NET (C#/F#/VB)Build commands, test commands, project reference validation, common CS error codes, MSTest template
extensions/python.mdPythonFramework-adaptive test commands (pytest, custom runners), project layout detection, mocking guidelines, common errors
extensions/typescript.mdTypeScript/JavaScriptBuild/test commands (Jest/Vitest/Mocha), framework detection, mocking, TS-specific considerations
extensions/powershell.mdPowerShellTest commands (Pester v5), module import patterns, discovery/run pitfalls, mocking, common errors
extensions/cpp.mdC++Testing internals with friend declarations
extensions/go.mdGogo test commands, table-driven tests, integration vs unit layout, mocking via interfaces, common errors
extensions/java.mdJavaMaven/Gradle commands, JUnit 4/5 and TestNG detection, Mockito, Spring Boot slices, common errors
extensions/rust.mdRustcargo test commands, unit vs integration vs doc tests, features, async test harnesses, common errors
extensions/ruby.mdRubyRSpec and Minitest commands, Bundler usage, Rails specifics, mocking patterns, common errors
extensions/swift.mdSwiftSPM and Xcode test commands, XCTest vs Swift Testing, @testable import, async/throws tests, common errors
extensions/kotlin.mdKotlinGradle commands, JUnit/Kotest detection, MockK, coroutines test, KMP and Android specifics, common errors
extensions/dotnet-examples.md.NET (C#/F#/VB)Concrete pipeline examples: sample research output, plan, generated tests, fix cycles, final report
extensions/python-examples.mdPythonConcrete pipeline examples (pytest): research, plan, generated test file, fix cycles, final report
extensions/typescript-examples.mdTypeScript/JavaScriptConcrete pipeline examples (Vitest, applicable to Jest): research, plan, generated test file, fix cycles, final report
extensions/go-examples.mdGoConcrete pipeline examples (standard testing): research, plan, table-driven test file, fix cycles, final report
extensions/java-examples.mdJavaConcrete pipeline examples (JUnit 5 + Mockito on Maven): research, plan, generated test file, fix cycles, final report

Usage

Read the appropriate base extension before writing test code. Load an <language>-examples.md file only when the repository has no representative tests and the base extension does not resolve the needed pattern. Do not load end-to-end examples for a focused request with established local conventions.

Comments

Markdown supported