WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.52k stars 4.21k forks source link

Improve unit and e2e test documentation #16452

Open tellthemachines opened 5 years ago

tellthemachines commented 5 years ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Describe alternatives you've considered

Expand info in https://developer.wordpress.org/block-editor/contributors/develop/testing-overview/ - but it would be great to do both :D

talldan commented 5 years ago

Add docs to packages/e2e-tests/fixtures/blocks/README.md to explain that when updating these fixtures, it may be necessary to run npx jest --clearCache followed by npm run fixtures:regenerate.

I made the related issue https://github.com/WordPress/gutenberg/issues/16176. I think this could be considered a bug that we might want to solve. It doesn't seem right that we should have to clear the cache.

Agree on the other points though.

talldan commented 5 years ago

Discovered another thing to add to the list. It seems as though packages/e2e-tests/fixtures/block-transforms.js needs to be updated whenever a new full-content fixture is added.

noisysocks commented 5 years ago

Not totally related to this issue, but something @tellthemachines and I were discussing the other day is how it could be worth looking into improving the developer experience surrounding our E2E tests and E2E tooling.

Some ideas:

DaisyOlsen commented 1 year ago

Is this still relevant? Is there anything still actionable here?