vscode-viva
vscode-viva copied to clipboard
💡 [Feature]: The pipline scaffolding form could allow to scaffold a run tests step
🎯 Aim of the feature
The pipeline scaffolding form could provide an additional option that will allow to scaffold a step in yaml flow that will run the gulp test
command for the SPFx project in order to run tests
📷 Images (if possible) with expected result
No response
🤔 Additional remarks or comments
This feature should first be extended in the CLI for Microsoft 365 spfx project github workflow add
and spfx project azuredevops pipeline add
commands. We should first open up an issue in this CLI repo
👣 Step by step plan
- SPFx toolkit uses CLI for Microsoft 365 for this feature. In order to get started with this we first need to open an issue in this repo to extend the
github workflow add
andazuredevops pipeline add
commands with an option that will allow to scaffold a pipeline/workflow with a step that will run tests - the new step should run the
gulp test
orgulp test-only
step - after this will get merged to CLI repo we need to migrate it to CJS to a forked repo which i CLI for Microsoft 365 maintained in CJS for this project https://github.com/Adam-it/cli-microsoft365/tree/cli-cjs
- after that we should extend:
- extend the workflow form with a new option that will allow to scaffold test. Preferable a checkbox in the UI. https://github.com/pnp/vscode-viva/blob/13484e740b976dbf3bc0f7a210391bfb091e4819/src/webview/view/components/forms/workflow/ScaffoldWorkflowView.tsx#L14
- and add handling the new field in the form to scaffold tests to the new option in the CLI command in https://github.com/pnp/vscode-viva/blob/13484e740b976dbf3bc0f7a210391bfb091e4819/src/services/CliActions.ts#L126