Skip to content

test(cli): cover wp parser invocation matrix#2858

Open
sjinks wants to merge 1 commit into
trunkfrom
pltfrm-2355-add-parser-invocation-matrix-test-file-covering-alias
Open

test(cli): cover wp parser invocation matrix#2858
sjinks wants to merge 1 commit into
trunkfrom
pltfrm-2355-add-parser-invocation-matrix-test-file-covering-alias

Conversation

@sjinks
Copy link
Copy Markdown
Member

@sjinks sjinks commented May 29, 2026

Description

Adds parser invocation coverage for vip wp argument forwarding across aliases, -- separators, option-only calls, and payload calls. This guards the expected split between VIP CLI options and WP-CLI payload arguments.

Refs: PLTFRM-2355

Changelog Description

No customer-facing changes; test coverage only.

Pull request checklist

New release checklist

Steps to Test

  1. Check out PR.
  2. Run npx jest __tests__/lib/cli/command-wp-matrix.test.js --color.
  3. Run npx jest __tests__/lib/cli/command.js --color.

Copilot AI review requested due to automatic review settings May 29, 2026 15:11
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 29, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds focused Jest coverage for vip wp parser/dispatch behavior, ensuring VIP CLI options, aliases, separators, and WP-CLI payload arguments are forwarded as expected.

Changes:

  • Adds a new parser invocation matrix for successful vip wp dispatch scenarios.
  • Adds a negative test for WP command payloads missing the required -- separator.

@sjinks sjinks self-assigned this May 29, 2026
@sjinks sjinks requested a review from a team May 29, 2026 15:17
## Purpose and Context

PLTFRM-2355 calls for parser coverage around `vip wp` invocations after
option handling proved fragile across aliases and `--` separator
placement.

## Key Changes

- Add coverage for option-only `wp` invocations.
- Cover alias forwarding and separator-preserved payload forwarding.
- Assert the missing-separator error for real `wp` payloads.

## Impact and Considerations

This is test-only and does not change CLI runtime behavior.

## Testing and Validation

Ran `npx jest __tests__/lib/cli/command-wp-matrix.test.js --color`.
Ran `npx jest __tests__/lib/cli/command.js --color`.

Refs PLTFRM-2355
@sjinks sjinks force-pushed the pltfrm-2355-add-parser-invocation-matrix-test-file-covering-alias branch from 33bb176 to b69cc03 Compare May 29, 2026 15:53
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants