testing-perf
This skill provides patterns for k6 load testing, Locust stress testing, and pytest execution optimization. It covers staged ramp-up configuration, threshold setup, test type classification (load, stress, spike, soak), and parallel execution with pytest-xdist for faster test suites.
testing-perf helps you set up k6 or Locust load tests with thresholds and staged ramp-up configurations.
AI-generated summary based on this skill's SKILL.md
Install
yonatangross/orchestkit/testing-perf · repository language: TypeScript
git clone https://github.com/yonatangross/orchestkit
cp -r orchestkit/src/skills/testing-perf ~/.claude/skills/testing-perfnpx skillfed install yonatangross/orchestkit/testing-perfFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I set up k6 load testing with thresholds?
testing-perf covers k6 load testing setup with thresholds by showing how to define performance criteria that fail your test if violated. You configure thresholds in your k6 script's options object to specify acceptable response times, error rates, and other metrics. The skill explains staged ramp-up patterns so you gradually increase virtual users rather than spiking load instantly, helping you identify breaking points in your system under realistic conditions.
What's the difference between load, stress, spike, and soak tests?
testing-perf classifies performance test types so you choose the right one for your goals. Load tests verify normal capacity; stress tests push beyond limits to find breaking points; spike tests suddenly increase traffic to test recovery; soak tests run at steady load for hours to detect memory leaks and degradation. The skill helps you plan which type answers your specific performance question before writing test code.
How can I speed up pytest test suites using xdist parallel execution?
testing-perf shows how to use pytest-xdist to run tests across multiple workers, dramatically reducing total execution time. You install pytest-xdist, add the -n flag with a worker count, and configure worker isolation to prevent test conflicts—especially important for database access and shared resources. The skill covers CI/CD integration patterns so parallel execution works reliably in your pipeline.
How do I write Locust stress tests for Python applications?
testing-perf provides Locust stress testing patterns including task weighting to simulate realistic user flows, authentication handling, and custom metrics. You define User classes with task methods, set spawn rates and run duration, then execute distributed load across multiple machines if needed. The skill shows how to structure tests for auth flows and other complex scenarios beyond simple HTTP requests.
What pytest markers and plugins work best for parallel testing?
testing-perf covers pytest markers for parallel tests and conftest plugin configuration to enable xdist worker isolation. You use markers to skip or group tests, configure fixtures with proper scoping, and set up plugins that coordinate state across workers. The skill explains how to handle database transactions, temporary files, and other resources that conflict when tests run simultaneously.
How do I integrate k6 performance tests into CI with thresholds?
testing-perf explains k6 CI integration by showing how to run k6 scripts in your pipeline and fail the build if thresholds are breached. You export results to JSON, parse threshold violations, and set exit codes accordingly. The skill covers staged ramp-up examples and custom metrics so your CI catches performance regressions before they reach production.
SKILL.md
rendered from the published skill — quoted content, verbatim
Performance & Load Testing Patterns
Focused skill for performance testing, load testing, and pytest execution optimization. Covers k6, Locust, pytest-xdist parallel execution, custom plugins, and test type classification.
Quick Reference
| Area | File | Purpose |
|---|---|---|
| k6 Load Testing | rules/perf-k6.md |
Thresholds, |
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 15 files
src/skills/testing-perf/SKILL.md
src/skills/testing-perf/checklists/performance-checklist.md
src/skills/testing-perf/checklists/pytest-production-checklist.md
src/skills/testing-perf/references/custom-plugins.md
src/skills/testing-perf/references/k6-patterns.md
src/skills/testing-perf/references/xdist-parallel.md
src/skills/testing-perf/rules/_sections.md
src/skills/testing-perf/rules/execution.md
src/skills/testing-perf/rules/perf-k6.md
src/skills/testing-perf/rules/perf-locust.md
src/skills/testing-perf/rules/perf-types.md
src/skills/testing-perf/rules/pytest-execution.md
src/skills/testing-perf/rules/pytest-plugins.md
src/skills/testing-perf/scripts/test-case-template.md
src/skills/testing-perf/test-cases.json