woocommerce/plugins/woocommerce-admin/bin/test-instruction-logger
Chi-Hsuan Huang 86fc8b62e5 Switch to pnpm (https://github.com/woocommerce/woocommerce-admin/pull/8349)
* Add pnpm-workspace.yaml

* Add missing dependencies & replace file: with workspace:* in
package.json

* Replace "npm" with "pnpm"

* Replace "npx" with "pnpx"

* Remove package-lock.json

* Add pnpm setup action to github workflows

* Update webpack babel exclude path

* Upgrade woo e2e and fix e2e test command

Update e2e.yml

Use pnpm run e2e:docker-up in e2e.yml

* Remove unused docker-compose.yaml

* Replace lerna with pnpm commands

Update publish commands

* Exclude _locutus_shared_bc.js in babel.config.js

* Add .npmrc to set enable-pre-post-scripts=true by default

* Fix storybook babel config

Update babel.config.js

* Add changelog

* Update pnpm-lock.yaml

* Replace pnpx with pnpm exec

* Update pnpm-lock.yaml

* Remove js-tests/package-lock.json

* Fix @woocommerce/tracks -> workspace:*

* Update pnpm-lock.yaml

* Add @woocommerce/experimental to onboarding/package.json

* Add "@woocommerce/component" to onboarding/package.json

* Update pnpm-lock.yaml

* Use || instead of && for "test:watch"

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>

* Fix packages/number "clean" command

* Add root: true to .eslintrc.js to enforce it to use the root config file

* Exclude packages/**/node_modules from babel transpiling

* Fix js-tests build config

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>
2022-03-04 12:01:16 +08:00
..
bin Add/7481 cmd to collect testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/7499) 2021-08-27 13:47:16 -07:00
Application.php Add/7481 cmd to collect testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/7499) 2021-08-27 13:47:16 -07:00
Config.php Add/7481 cmd to collect testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/7499) 2021-08-27 13:47:16 -07:00
README.md Switch to pnpm (https://github.com/woocommerce/woocommerce-admin/pull/8349) 2022-03-04 12:01:16 +08:00
SetGithubCredentialsCommand.php Add/7481 cmd to collect testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/7499) 2021-08-27 13:47:16 -07:00
WriteCommand.php Add support for filtering by changelog type for testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/8256) 2022-02-04 09:32:21 -04:00

README.md

Test Instruction Logger

Test Instruction Logger retrieves test instructions from the PRs in the changelog.txt and writes them into TESTING-INSTRUCTION.md.

Prerequisites

Test Instruction Logger requires Github username and a personal access token to use the Github REST API.

  1. Follow this guide to create a new personal access token.
  2. Run pnpm run test-instruction-logger github-credentials. Enter your Github username and the perosnal access token. The data will be saved in $HOME/.wca-test-instruction-logger.json

Writing to TESTING-INSTRUCTION.md

  1. Update the changelog.txt
  2. Run pnpm run test-instruction-logger -- write :version.
  3. Verify TESTING-INSTRUCTION.md.

Options

types

A comma seperated list of changelog types to retrieve the testing instructions from.

pnpm run test-instruction-logger -- write :version --types=enhancement,add

save-to

Allows you to save the testing instructions to a different file. Default: TESTING-INSTRUCTIONS.md

pnpm run test-instruction-logger -- write :version --save-to=instructions.md