Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.41 KB

File metadata and controls

30 lines (19 loc) · 1.41 KB

Testing

If developing with VSCode, tests can be run inline within the test files themselves, and is the recommended method for running and debugging tests. Tests can also be run from the command line with the go test command.

Testing Environment for Development

The CLI tool can be run against forked repos for testing. To configure your forked repos:

  1. Fork the following repos to your github user repo:

  2. Ensure that your forked repos contains the PR labels specified below: a) Gutenberg Mobile: "release-process" b) Gutenberg: "Mobile App - i.e. Android or iOS"

  3. Ensure that each of your repos contains the target branch trunk.

  4. Ensure that .gitmodules references your Gutenberg fork.

To run commands against the forked repos, set GBM_WORDPRESS_ORG and GBM_WPMOBILE_ORG as environment variables to user GitHub username. By default, these values with be WordPress and WordPress-Mobile, respectively.

Example command:

GBM_WPMOBILE_ORG=yourusername GBM_WORDPRESS_ORG=yourusername go run main.go release prepare gb 1.109.0