Toolverse
All skills

gpui-test

by longbridge

Writing tests for GPUI applications. Use when testing components, async operations, or UI behavior.

Installation

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

Installation

Quick info

Category
Testing

About this skill

Writing tests for GPUI applications. Use when testing components, async operations, or UI behavior.

How to use

  1. Zainstaluj umiejętność w swoim projekcie GPUI, dodając ją do konfiguracji Claude/Copilot. 2. Dla testów nie wymagających okien lub renderowania napisz zwykły test Rust bez atrybutu #[gpui::test] — będzie szybszy i prostszy. 3. Dla testów komponentów użyj atrybutu #[gpui::test] z parametrem cx: &mut TestAppContext, aby uzyskać dostęp do funkcjonalności GPUI (tworzenie, aktualizacja i odczyt encji). 4. Dla testów wymagających okien i renderowania użyj VisualTestContext, które rozszerza TestAppContext o obsługę okien — otwórz okno za pomocą cx.open_window() i umieść w nim komponenty do testowania. 5. Dla testów właściwości (property testing) dodaj atrybut #[gpui::test(iterations = 10)] i parametr mut rng: StdRng, aby generować losowe dane i uruchamiać test wielokrotnie. 6. Wykorzystaj metody update(), read_with() i notify() na encjach do modyfikacji stanu, odczytu wartości i powiadamiania o zmianach w testach.

Related skills

langgraph-docs

by langchain-ai

Use this skill for requests related to LangGraph in order to fetch relevant documentation to provide accurate, up-to-date guidance.

Testing
23127

code-review-excellence

by wshobson

Master effective code review practices to provide constructive feedback, catch bugs early, and foster knowledge sharing while maintaining team morale. Use when reviewing pull requests, establishing review standards, or mentoring developers.

Testing
1145

ad-creative

by alirezarezvani

When the user needs to generate, iterate, or scale ad creative for paid advertising. Use when they say 'write ad copy,' 'generate headlines,' 'create ad variations,' 'bulk creative,' 'iterate on ads,' 'ad copy validation,' 'RSA headlines,' 'Meta ad copy,' 'LinkedIn ad,' or

Testing
2863

python-testing-patterns

by wshobson

Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.

Testing
46146

playwright-browser-automation

by lackeyjb

Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test

Testing
13130

ppt-creator

by daymade

Create professional slide decks from topics or documents. Generates structured content with data-driven charts, speaker notes, and complete PPTX files. Applies persuasive storytelling principles (Pyramid Principle, assertion-evidence). Supports multiple formats (Marp,

Testing
2739