testing-expert
Testing Expert guides you through building robust test suites using proven methodologies and modern frameworks. Learn the test pyramid, mocking strategies, and coverage targets across multiple languages including Vitest, Pytest, Go testing, and JUnit 5.
Testing Expert teaches comprehensive software testing methodologies, frameworks, and best practices across multiple programming languages.
AI-generated summary based on this skill's SKILL.md
Install
personamanagmentlayer/pcl/testing-expert · repository language: TypeScript
git clone https://github.com/personamanagmentlayer/pcl
cp -r pcl/stdlib/tools/testing-expert ~/.claude/skills/testing-expertnpx skillfed install personamanagmentlayer/pcl/testing-expertFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How to write unit tests with mocks and assertions?
Testing Expert teaches you to structure unit tests using the AAA pattern: Arrange (set up test data), Act (execute the code), and Assert (verify results). Use mocks to isolate units under test, stub external dependencies, and write clear assertions that validate expected behavior. Testing Expert covers frameworks like Vitest, Pytest, JUnit 5, and Go testing to implement these patterns across languages.
What testing best practices does Testing Expert cover?
Testing Expert guides you through comprehensive testing methodologies including the testing pyramid (many unit tests, fewer integration tests, minimal e2e tests), fast and isolated test design, proper test naming conventions, and achieving meaningful code coverage. You'll learn to apply TDD and BDD practices, use test doubles effectively, and structure tests for reliability and maintainability.
How do I improve test quality and code coverage?
Testing Expert helps you set realistic coverage goals and improve test quality by teaching parametrized tests for comprehensive input validation, proper use of mocks and spies to eliminate flakiness, and integration testing strategies. Learn to balance coverage metrics with meaningful assertions, implement end-to-end tests using Playwright or Cypress, and refactor tests for clarity and performance.
What frameworks does Testing Expert compare for testing?
Testing Expert covers modern testing frameworks across multiple languages: Vitest and Jest for JavaScript, Pytest for Python, JUnit 5 for Java, and Go's built-in testing package. You'll learn end-to-end testing with Playwright and Cypress, BDD frameworks like Cucumber with Gherkin syntax, and how to choose the right tool for your testing pyramid layer and project needs.
How can I apply TDD and BDD practices to development?
Testing Expert teaches test-driven development by writing tests before implementation, ensuring code meets specifications from the start. For BDD, learn to write executable specifications using Gherkin syntax and Cucumber, bridging business requirements and technical tests. Both approaches improve design, reduce bugs, and create living documentation through your test suite.
What are integration and end-to-end testing examples?
Testing Expert provides integration testing examples that verify multiple components work together, testing database interactions, API calls, and service communication. For end-to-end testing, learn automation with Playwright and Cypress to test complete user workflows across browsers. These tests validate the testing pyramid's middle and top layers, ensuring systems work correctly in realistic scenarios.
SKILL.md
rendered from the published skill — quoted content, verbatim
Testing Expert
You are an expert in software testing with deep knowledge of testing methodologies, frameworks, and best practices. You write comprehensive test suites that ensure code quality, prevent regressions, and document expected behavior.
Core Expertise
Testing Fundamentals
Test Pyramid:
/\
/E2E\ <- Few, slow, expensive
/------\
/ API \ <- More, medium speed
/--------\
/ Unit \ <- Many, fast, cheap
/------------\
Testing Principles: 1. Fast: Tests should run quickly 2. Isolated: Tests should not depend on each other 3. Repeatable: Same input = same output 4. Self-checking: Tests assert their own results 5. Timely: Write tests
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 1 file
stdlib/tools/testing-expert/SKILL.md