Skip to content

Add k6 performance and load testing rule#306

Open
tugkanboz wants to merge 2 commits into
PatrickJS:mainfrom
tugkanboz:add-k6-performance-testing
Open

Add k6 performance and load testing rule#306
tugkanboz wants to merge 2 commits into
PatrickJS:mainfrom
tugkanboz:add-k6-performance-testing

Conversation

@tugkanboz

@tugkanboz tugkanboz commented Jun 7, 2026

Copy link
Copy Markdown

Adds a k6 performance and load testing rule to the Testing section.

The Testing list currently covers unit, E2E, integration, accessibility, and API testing, but there is no performance or load testing entry yet. This fills that gap.

The rule follows the same structure as the existing testing rules: frontmatter, an expert persona, TypeScript auto-detection, and focused sections for load patterns, checks and thresholds, custom metrics, test data with SharedArray, environment and secrets, and CI/CD reporting.

Adapted from a k6 framework setup I maintain here: https://github.com/tugkanboz/awesome-cursorrules

Summary by CodeRabbit

  • Documentation
    • Added comprehensive k6 performance and load testing documentation
    • Updated testing reference section to include k6 load testing tools and guidance
    • New documentation provides recommendations for load/stress/soak test patterns, threshold configuration, custom metrics, environment management, error handling, and CI/CD integration best practices

@coderabbitai

coderabbitai Bot commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6181777e-ea23-42ca-a342-c7ec1d46b764

📥 Commits

Reviewing files that changed from the base of the PR and between b044f95 and 7241a8f.

📒 Files selected for processing (2)
  • README.md
  • rules/k6-performance-load-testing-cursorrules-prompt-file.mdc

📝 Walkthrough

Walkthrough

This PR introduces a new k6 performance testing Cursor rule to the awesome-cursorrules repository. A new rule file provides comprehensive guidance for writing k6 load, stress, and soak tests using TypeScript, covering test organization, metrics, thresholds, data handling, and CI/CD integration. The README Testing section is updated to list this rule alongside existing test-related entries.

Changes

k6 Performance Testing Cursor Rule

Layer / File(s) Summary
k6 Cursor Rule Implementation
rules/k6-performance-load-testing-cursorrules-prompt-file.mdc
New rule file containing metadata and prescriptive guidance for k6 performance/load testing, covering persona, TypeScript detection, modular ES6 organization, load patterns/executors, mandatory checks/thresholds, custom metrics (Trend/Counter/Rate/Gauge), SharedArray-based test data, environment configuration, CI/CD reporting, and best practices.
README Testing Section Update
README.md
Added k6 Performance and Load Testing entry to the Testing section, maintaining list order between Jest Unit Testing and Playwright API Testing.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Suggested reviewers

  • PatrickJS

Poem

🐰 A rabbit hops through test-load thresholds bright,
With k6 rules now guiding every test to flight!
From TypeScript checks to metrics dear and true,
Load testing wisdom—curated fresh and new! 🚀

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: adding a new k6 performance and load testing rule to the repository.
Description check ✅ Passed The description covers the contribution type (new rule file), explains the value to users, lists changed files with reasons, and addresses most quality checklist items. It is substantially complete.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant