From 311aea5d9e92c3fdfe1bb2e28684fa4498565b40 Mon Sep 17 00:00:00 2001 From: Adam Simpson Date: Thu, 14 Sep 2023 09:47:25 -0400 Subject: [PATCH] update package.json with e2e script --- CONTRIBUTING.md | 6 ++---- package.json | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 93c05d41..fc614f06 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -36,12 +36,10 @@ You can also have `yarn` watch for changes and automatically recompile them: yarn watch ``` -#### Running E2E tests +#### Running E2E tests locally 1. Install [K6](https://k6.io/docs/get-started/installation/) -1. Ensure Grafana is running on port `:3000` -1. Ensure clickhouse server is running on port `:9000`, hint you can use the `docker-compose.yml` file to get the needed services running. -1. Run `k6 run e2e/e2ek6.test.js` +1. Run `yarn test:e2e` ## Create a pull request 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",