Skip to content

Add Performance Test Project to JavaScript Repository#1

Merged
QualityOwl merged 3 commits into
mainfrom
initial_add
May 27, 2026
Merged

Add Performance Test Project to JavaScript Repository#1
QualityOwl merged 3 commits into
mainfrom
initial_add

Conversation

@QualityOwl

Copy link
Copy Markdown
Owner

Pull Request

Description

A new performance test project has been added to the JavaScript repository. This establishes a dedicated home for performance tests, separating them from the C# REST API tests. The project provides a foundation for running and extending performance test coverage.

Changes Made

  • Added a new performance test project to the repository

Copilot AI review requested due to automatic review settings May 27, 2026 21:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a dedicated performance/ test layer to this JavaScript repository using k6, establishing a separate home for performance/load tests against the Restful Booker demo API.

Changes:

  • Added k6 performance test suites for /ping, /auth, and booking CRUD endpoints with shared environment/threshold configuration.
  • Added a performance/package.json with scripts to run suites locally.
  • Added a GitHub Actions workflow intended to run the k6 suites in CI.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
README.md Documents repository “test layers” and introduces the new performance/ layer.
performance/tests/ping-performance-tests.js k6 load test for GET /ping with endpoint-specific thresholds.
performance/tests/auth-performance-tests.js k6 load test for POST /auth and token presence checks.
performance/tests/booking-performance-tests.js k6 scenario covering booking list/create/get/update/delete under load.
performance/helpers/auth-helper.js Shared helper to fetch an auth token for authenticated booking operations.
performance/config/environments.js Environment variable configuration for base URL and credentials.
performance/config/thresholds.js Shared default k6 thresholds for error rate, latency, and checks.
performance/README.md Instructions and reference documentation for running/configuring performance tests.
performance/package.json Local npm scripts to run k6 suites and a smoke run.
.github/workflows/run-performance-tests.yaml CI workflow to execute the k6 scripts.
.github/instructions/code-review.instructions.md Adds repo-local Copilot code review guidance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/run-performance-tests.yaml
Comment thread .github/workflows/run-performance-tests.yaml
Comment thread .github/workflows/run-performance-tests.yaml
Comment thread performance/tests/booking-performance-tests.js
Comment thread performance/tests/booking-performance-tests.js
Comment thread performance/tests/booking-performance-tests.js
Comment thread performance/tests/booking-performance-tests.js
Comment thread performance/tests/auth-performance-tests.js
Comment thread performance/helpers/auth-helper.js
Comment thread performance/config/environments.js Outdated
@QualityOwl QualityOwl merged commit 76128a5 into main May 27, 2026
1 check passed
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.

2 participants