spryker / commerce-k6-performance-tests
K6 performance tests
Installs: 53
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 34
Forks: 2
Open Issues: 2
Language:JavaScript
- dev-master
- dev-feature/dex-load-tests-adjustments
- dev-master-backup
- dev-feature/CC-34532-BO-performance-tests
- dev-feature/cc-33320/dev-k6-tests
- dev-feature/frw-8409/dex-adjust-loadtesting
- dev-feature/frw-8409/dex-adjust-loadtesting-p2
- dev-feature/dex-load-tests-adjustments-company-user
- dev-threshold-poc
- dev-feature/dex-load-tests
- dev-fixes-and-improvements
- dev-feature/chat-gpt-test-code-generator
- dev-feature/cc-29704-k6-enrich-k6-metrics-attributes
This package is auto-updated.
Last update: 2025-09-12 13:36:04 UTC
README
This project contains performance tests for the Spryker Commerce applications using K6.
Prerequisites
- Node.js & NPM
- Docker & Docker Compose
Setup
-
Clone the repository:
git clone <repository-url> cd commerce-k6-performance-tests
-
Install dependencies:
npm install
-
Create a
.env
file based on the provided.env.local.example
:cp .env.local.example .env
-
Update the
.env
file with the required environment variables.
Scripts
Build
-
Build all tests:
npm run webpack:build
-
Build specific test patterns:
npm run webpack:build --tags=cart-reorder npm run webpack:build --tags=cart,load ...
Docker
-
Start Docker services:
npm run docker:up
-
Stop Docker services:
npm run docker:down
-
Run tests in Docker:
npm run docker:run
Linting and Formatting
-
Check code formatting:
npm run prettier:check
-
Fix code formatting:
npm run prettier:write
-
Lint code:
npm run lint
Running Tests
-
Build the tests:
npm run webpack:build
-
Start Docker services:
npm run docker:up
-
Run the tests:
npm run docker:run
-
Stop Docker services:
npm run docker:down
Configuration
Environment Variables
K6_HOSTENV
: Environment for K6 (default:local
)K6_NO_THRESHOLDS
: Disable thresholds (default:true
)SPRYKER_REPOSITORY_ID
: Repository ID (default:suite
)SPRYKER_TEST_TYPE
: Test type (default:smoke
)
Project Structure
src/tests
: Contains test filessrc/utils
: Utility functionssrc/resources
: API resource filessrc/pages
: Page objectssrc/fixtures
: Test data fixturesdist
: Compiled test files
Using Grafana
Grafana is used to visualize the performance test results.
-
Start the Docker services:
npm run docker:up
-
Open Grafana in your browser:
http://localhost:3000
-
Navigate to the dashboards to view the performance metrics.
License
This project is licensed under the MIT License.