Skip to content

Commit

Permalink
Add link to fixtures in Testing Overview (WordPress#17283)
Browse files Browse the repository at this point in the history
* Add link to fixtures in Testing Overview

Adds a link to Testing Overview document to the e2e tests fixtures that
are required for each core block.

* Update docs/contributors/testing-overview.md

Co-Authored-By: Daniel Richards <[email protected]>

* Update docs/contributors/testing-overview.md

Co-Authored-By: Daniel Richards <[email protected]>
  • Loading branch information
mkaz and talldan authored Sep 2, 2019
1 parent c9b7c9b commit 40e4a7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/contributors/testing-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ If you're using a different setup, you can provide the base URL, username and pa
WP_BASE_URL=http://localhost:8888 WP_USERNAME=admin WP_PASSWORD=password npm run test-e2e
```

### Core Block Testing

Every core block is required to have at least one set of fixture files for its main save function and one for each deprecation. These fixtures test the parsing and serialization of the block. See [the e2e tests fixtures readme](/packages/e2e-tests/fixtures/blocks/README.md) for more information and instructions.

## PHP Testing

Tests for PHP use [PHPUnit](https://phpunit.de/) as the testing framework. If you're using the built-in [local environment](/docs/contributors/getting-started.md#local-environment), you can run the PHP tests locally using this command:
Expand Down

0 comments on commit 40e4a7c

Please sign in to comment.