load-testing

Codify deterministic K6 load tests for REST and GraphQL endpoints.

5|Updated May 30, 2023
One-click install
npx skills add https://github.com/VilnaCRM-Org/core-service --skill load-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: load-testing
Source: https://github.com/VilnaCRM-Org/core-service/tree/main/.claude/skills/load-testing
Command: npx skills add https://github.com/VilnaCRM-Org/core-service --skill load-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill codifies end-to-end load testing patterns for REST and GraphQL APIs, enabling repeatable, deterministic performance validation across projects.

Core Features & Use Cases

  • Deterministic testing patterns for REST and GraphQL endpoints to ensure reproducible results.
  • Automated setup and teardown guidance to reliably create and clean up test dependencies.
  • Configuration templates and patterns for K6-based load tests, including script organization, data generation, and IRIs handling.
  • Practical use cases across CI/CD, capacity planning, performance baselining, and regression verification.

Quick Start

Run a ready-made load-testing scenario via the provided examples to bootstrap performance testing.

Frequently Asked Questions about load-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create deterministic load tests for REST and GraphQL APIs?

Deterministic load tests for REST and GraphQL APIs are created by codifying K6-based test scripts, configuration templates, and data generation patterns. This enforces reproducible results through proper IRI handling and robust validation within API endpoints.

What is the best way to structure K6 load testing scripts for CI/CD pipelines?

The best way to structure K6 load testing scripts for CI/CD is using configuration templates that enforce deterministic operations. This approach ensures repeatable performance validation, reliable setup and teardown of test dependencies, and consistent regression verification.

Can I use K6 to test both REST and GraphQL endpoints with proper IRI handling?

Yes, you can use K6 to test both REST and GraphQL endpoints. The testing patterns enforce deterministic operations and proper IRI handling, including full-IRI usage for GraphQL, to ensure accurate and reproducible performance validation across endpoints.

How do you handle setup and teardown of test dependencies during API load testing?

Setup and teardown of test dependencies during API load testing are handled through automated guidance and deterministic patterns. This reliably creates necessary test data beforehand and cleans up dependencies afterward to maintain reproducible performance testing environments.

Why do my GraphQL load tests return inconsistent results across different runs?

GraphQL load tests return inconsistent results when lacking deterministic operations and proper full-IRI usage. Codifying test scripts with strict configuration templates, data generation patterns, and robust validation troubleshooting ensures reproducible performance baselining and eliminates variability.

When do I need automated performance testing for capacity planning and regression verification?

Automated performance testing for capacity planning and regression verification is needed when establishing performance baselines or validating API changes. Codifying deterministic K6 load tests ensures repeatable validation across REST and GraphQL endpoints within CI/CD workflows.