Skip to content

Commit

Permalink
update package.json with e2e script
Browse files Browse the repository at this point in the history
  • Loading branch information
asimpson committed Sep 14, 2023
1 parent 17cdf14 commit 311aea5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 311aea5

Please sign in to comment.