Toolverse
All skills

bunit-test-migration

by FritzAndFriends

Migrate bUnit test files from deprecated beta API (1.0.0-beta-10) to bUnit 2.x stable API. Use this when working on .razor test files in BlazorWebFormsComponents.Test that contain old patterns like TestComponentBase, Fixture, or SnapshotTest.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Testing
Views
5

About this skill

Migrate bUnit test files from deprecated beta API (1.0.0-beta-10) to bUnit 2.x stable API. Use this when working on .razor test files in BlazorWebFormsComponents.Test that contain old patterns like TestComponentBase, Fixture, or SnapshotTest.

How to use

  1. Zidentyfikuj pliki testowe .razor w projekcie BlazorWebFormsComponents.Test, które zawierają stare wzorce: @inherits TestComponentBase, elementy , , lub metody przyjmujące parametr Fixture.

  2. Zmień dziedziczenie klasy z TestComponentBase na BunitContext w dyrektywie @inherits na początku pliku.

  3. Usuń elementy opakowujące i ze swoich testów, zachowując tylko komponenty wewnątrz nich.

  4. Przekonwertuj stare metody testowe na nowy format: dodaj atrybut [Fact], zmień sygnaturę na public void, usuń parametr Fixture i zmień nazwę metody na wzór ComponentName_Scenario_ExpectedResult().

  5. Zamień dostęp do komponentu z var cut = fixture.GetComponentUnderTest() na var cut = Render(@), gdzie parametry dostosuj do Twojego komponentu.

  6. Przekonwertuj testy snapshot'ów: zamień elementy , i na zwykłą metodę testową z atrybutem [Fact], która renderuje komponent i weryfikuje jego wyjście HTML.

Related skills

powershell-windows

by davila7

PowerShell Windows patterns. Critical pitfalls, operator syntax, error handling.

Testing
1074

go-dev-guidelines

by jumppad-labs

This skill should be used when writing, refactoring, or testing Go code. It provides idiomatic Go development patterns, TDD-based workflows, project structure conventions, and testing best practices using testify/require and mockery. Activate this skill when creating new Go

Testing
1190

playwright-cli

by microsoft

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

Testing
45103

pair-trade-screener

by tradermonty

Statistical arbitrage tool for identifying and analyzing pair trading opportunities. Detects cointegrated stock pairs within sectors, analyzes spread behavior, calculates z-scores, and provides entry/exit recommendations for market-neutral strategies. Use when user requests pair

Testing
994

creating-financial-models

by anthropics

This skill provides an advanced financial modeling suite with DCF analysis, sensitivity testing, Monte Carlo simulations, and scenario planning for investment decisions

Testing
25137

langchain

by zechenzhangAGI

Framework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), 500+ integrations, ReAct agents, tool calling, memory management, and vector store retrieval. Use for building chatbots, question-answering

Testing
21123