diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3fd36a50..fc614f06 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -36,6 +36,11 @@ You can also have `yarn` watch for changes and automatically recompile them: yarn watch ``` +#### Running E2E tests locally + +1. Install [K6](https://k6.io/docs/get-started/installation/) +1. Run `yarn test:e2e` + ## Create a pull request Once you are ready to make a pull request, please read and follow [Create a pull request](https://github.com/grafana/grafana/blob/master/contribute/create-pull-request.md). diff --git a/package.json b/package.json index 093dbe29..809e609c 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,7 @@ "server": "docker-compose up --build", "spellcheck": "cspell -c cspell.config.json \"**/*.{ts,tsx,js,go,md,mdx,yml,yaml,json,scss,css}\"", "sign": "npx --yes @grafana/sign-plugin@latest", - "e2e": "yarn exec cypress install && yarn exec grafana-e2e run", - "e2e:update": "yarn exec cypress install && yarn exec grafana-e2e run --update-screenshots" + "test:e2e": "docker-compose up -d && k6 run e2e/e2ek6.test.js" }, "author": "Grafana Labs", "license": "Apache-2.0",