woocommerce/plugins/woocommerce-admin/bin/test-instruction-logger
louwie17 ec3852160d Add support for filtering by changelog type for testing instructions (https://github.com/woocommerce/woocommerce-admin/pull/8256)
* Add support for filtering by changelog type for testing instructions, and remove some warnings

* Update readme

* Remove error log

* Add changelog
2022-02-04 09:32:21 -04: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 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
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 npm 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 npm 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.

npm 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

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