Skip to content

Commit

Permalink
docs: add info about e2e tests (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
asimpson authored Sep 18, 2023
1 parent 72f74aa commit a1042bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
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 a1042bb

Please sign in to comment.