Toolverse
All skills

rust-tests-guidelines

by RediSearch

Guidelines for writing Rust tests.

Installation

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

Installation

Quick info

Category
Testing
Views
19

About this skill

Guidelines for writing Rust tests.

How to use

  1. Zapoznaj się z podstawową zasadą: testuj publiczne API kodu, który testujesz. Prywatne interfejsy testuj tylko wtedy, gdy komponent jest złożony i trudny do przetestowania przez publiczne API.
  2. Wybierz odpowiednie narzędzie — użyj insta gdy testujesz wyniki trudne do przewidzenia lub porównania, a proptest do testów opartych na właściwościach dla kluczowych niezmienników.
  3. Organizuj testy w katalogu tests odpowiedniej skrzyni (crate), jeśli nie polegają na prywatnych API. Struktura powinna być skrzynią z plikiem main.rs i testami w modułach.
  4. Jeśli test musi odwoływać się do prywatnych API, umieść go obok testowanego kodu, używając modułu #[cfg(test)].
  5. Pisz kod testowy z taką samą starannością co kod produkcyjny — unikaj niepotrzebnego powielania, wprowadzaj helpery do redukcji boilerplate'u i zapewniaj czytelność.
  6. Nie odwołuj się do dokładnych numerów linii w komentarzach, ponieważ mogą się zmieniać w czasie.

Related skills

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

crypto-research

by stevengonsalvez

Comprehensive cryptocurrency market research and analysis using specialized AI agents. Analyzes market data, price trends, news sentiment, technical indicators, macro correlations, and investment opportunities. Use when researching cryptocurrencies, analyzing crypto markets,

Testing
14118

code-reviewer

by google-gemini

Use this skill to review code. It supports both local changes (staged or working tree) and remote Pull Requests (by ID or URL). It focuses on correctness, maintainability, and adherence to project standards.

Testing
1248

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

powershell-windows

by davila7

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

Testing
1074

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