Tag: testing
Vitest best practices and testing guide
This guide outlines advanced best practices for writing robust unit and integration tests using Vitest. It advises developers on mocking strategies, distinguishing between behavior and implementation tests, and optimizing test coverage.
CLI Backend Integration Testing Workflow
This tool facilitates end-to-end verification of backend API changes, allowing developers to test TRPC routers, services, and models via the LobeHub CLI against a local development server. It guides the process from server startup and authe…
Capture AI API Response Test Fixtures
This utility provides structured methods for generating and capturing raw API response test fixtures from AI providers. It facilitates robust testing of response parsing by logging both standard and raw streamed JSON outputs.
Adding AI Function Examples
A guide for implementing new AI function examples to test specific features against provider APIs and serve as user documentation.
Xcode Build Test Boundary and Guardrail Review
This skill reviews the test boundaries and guardrails for XcodeBuildMCP, ensuring unit tests maintain isolation and do not call real external processes or build tools. It validates test scope, contract adherence, and necessary build command…
Advanced skill for robust frontend testing
This skill provides advanced methodologies and best practices for writing robust unit and integration tests for React applications. It guides developers through covering edge cases, boundary conditions, and complex asynchronous flows using …
Writing effective and maintainable Python unit tests
This skill guides the development of robust Python unit tests using pytest, covering principles like atomicity and self-containment. It details best practices for fixtures, parameterization, mocking external services, and handling asynchron…
Structured planning and assertion generation skill
This skill mandates the creation of a structured test assertions file, guiding automated verification runners. It allows developers to categorize tests by data, pipeline, or agent layers, setting severity gates from warning to immediate abo…
Minimal boilerplate skill for agent testing
This skill provides a minimal, boilerplate implementation designed specifically for testing and demonstrating the required structure of a custom agent skill within the CrewAI framework. It ensures all necessary fields are present without ad…
Fixture for testing invalid skill naming
This skill is a testing fixture designed to validate agent framework error handling. It simulates the use of an invalid or improperly formatted skill name to ensure robust system validation.
Creating and managing promptfoo evaluation suites
This skill guides the creation and maintenance of comprehensive promptfoo evaluation suites, enabling rigorous QA for non-redteam coverage, regression testing, and new matrix development. It details structuring configs, writing prompts, sel…
SDK Skill Integration Test Skill
A test skill used to verify the integration of skills within the SDK, enabling validation of the skill-reading mechanism.
Web and Native macOS Application Testing Tool
This tool provides comprehensive automation for local testing environments, supporting both web/Electron applications via Chrome DevTools Protocol (CDP) and native macOS apps using AppleScript. Developers can simulate complex user flows, in…
Comprehensive examples for AI SDK function development
This repository provides a comprehensive suite of examples and templates for validating, testing, and demonstrating various AI SDK functions across multiple providers. It covers core capabilities such as text generation, structured object o…
Adding AI function examples for testing
This skill guides developers through adding functional examples to test specific AI features against actual provider APIs. Examples must be created for relevant top-level functions, including both generateText and streamText variants.
Robust Git Pre-Commit Hook for Code Quality
This skill implements a robust pre-commit hook using lefthook, ensuring code quality before committing. It runs parallel checks for dependency lockfile synchronization, linting/formatting, and comprehensive unit testing across all packages.
Generate React Frontend Tests with Vitest and RTL
This skill generates high-quality unit and integration tests for React components, hooks, and utilities using Vitest and React Testing Library. It enforces best practices, including the AAA pattern and structured testing workflows, ensuring…
End-to-End Testing with Cucumber and Playwright
This skill facilitates the writing, updating, and reviewing of Dify's end-to-end test suite using Cucumber, Gherkin, and Playwright. It enforces best practices for scenario definition, step implementation, and user-facing locators within th…
Writing Baserow Frontend Unit Tests
Provides comprehensive guidance on writing and updating unit tests for Baserow's Vue/Nuxt frontend components, utilities, and stores. It mandates adherence to established patterns using Vitest, TestApp, and specific mounting utilities.
Three-layer code verification and quality assurance
This skill performs comprehensive code verification by running LSP diagnostics, compiling the project, and executing the test suite in parallel. It provides a structured report detailing blocking issues, including test failure correlation, …
Identify and run correlated tests
Identify and execute only the specific tests that cover a modified source file to accelerate the feedback loop. It uses LSP capabilities to map source files to their corresponding test files and functions.
testing dbhub connectors and utilities
This skill facilitates comprehensive testing of DBHub, covering unit tests using Vitest and complex integration tests leveraging Testcontainers for various database backends. It provides structured commands and debugging guidance for ensuri…
Writing effective and maintainable Python unit tests
This skill guides developers through writing robust, atomic, and self-contained Python unit tests using pytest. It covers advanced techniques such as parameterization, fixture management, mocking boundaries, and handling asynchronous operat…
Test-Driven Development Workflow
Enforces a rigorous test-driven development workflow, mandating unit, integration, and E2E tests with a minimum 80% coverage threshold. The process guides developers through defining user journeys and test cases prior to implementation.