Skip to content

Commit

Permalink
Add an explanation how to setup environment to do run the performance…
Browse files Browse the repository at this point in the history
… test (#41883)
  • Loading branch information
grappler authored Jun 23, 2022
1 parent 5e5d7df commit aea06d8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/contributors/code/testing-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,17 @@ To ensure that the editor stays performant as we add features, we monitor the im
- The time it takes for the browser to respond when typing.
- The time it takes to select a block.

Performance tests are end-to-end tests running the editor and capturing these measures. To run the tests, make sure you have an e2e testing environment ready and run the following command:
Performance tests are end-to-end tests running the editor and capturing these measures. Make sure you have an e2e testing environment ready.

To set up the e2e testing environment, checkout the Gutenberg repository and switch to the branch that you would like to test. Run the following command to prepare the environment.

```
nvm use && npm install
npm run build:packages
npm run wp-env start
```

To run the tests run the following command:

```
npm run test-performance
Expand Down

0 comments on commit aea06d8

Please sign in to comment.