This tool runs a pool of Cypress processes in a Kubernetes cluster along with tools to collect, store and visualize their performance.
Init kind cluster:
kind create clusterInside cypress directory:
docker build . -t cypress-test:latest
kind load docker-image cypress-test:latestInside vector directory:
docker build . -t cypress-vector:latest
kind load docker-image cypress-vector:latestEdit the file helm/values.yaml to suit your benchmark scenario (target URL, number of concurrent Cypress agents etc).
Inside helm directory:
helm upgrade --install cypress-test .Run on a separate shell:
kubectl port-forward service/cypress-test-grafana 8080:80Open the URL http://localhost:8080 in a browser
Log in with user admin and password prom-operator
Find and open the dashboard called Cypress
Available metrics are (per Cypress agent):
- Visited pages per second
- Total visited pages
- CPU usage
kind delete cluster