pnp / vscode-viva

With the SharePoint Framework Toolkit extension, you can create and manage your SharePoint Framework solutions on your tenant. All actions you need to perform during the development flow are at your fingertips.
https://marketplace.visualstudio.com/items?itemName=m365pnp.viva-connections-toolkit
MIT License
34 stars 14 forks source link

💡 [Feature]: The pipline scaffolding form could allow to scaffold a run tests step #223

Open Adam-it opened 2 months ago

Adam-it commented 2 months ago

🎯 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

  1. 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 and azuredevops pipeline add commands with an option that will allow to scaffold a pipeline/workflow with a step that will run tests
  2. the new step should run the gulp test or gulp test-only step
  3. 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
  4. after that we should extend: