Skip to content

GA Test Plan

Wassim Chegham edited this page Apr 12, 2022 · 19 revisions

This is a Test Plan for Testing the GA release.

swa login

Get the latest source from the GA branch:

  1. git clone -b ga http://github.com/Azure/static-web-apps-cli.git
  2. cd static-web-apps-cli
  3. npm install
  4. npm run build
  5. npm test

Test plan:

  1. make sure there are no issues during npm install

  2. make sure there are no issues during npm run build

  3. make sure there are no issues during npm test

  4. login using keychain: node ./dist/cli/bin.js login --use-keychain true

    • you might be asked to enter your system password.
  5. login without keychain: node ./dist/cli/bin.js login --use-keychain false

    • the browser window will open
  6. make sure the file ​.env ​has been created with the right project details

AZURE_SUBSCRIPTION_ID=00000000-0000-0000-0000-000000000000
AZURE_TENANT_ID=00000000-0000-0000-0000-000000000000
  1. make sure the .gitingore file got updated with the .env entry.
    • only applicable if you are in a git project.
  2. run node ./dist/cli/bin.js login --use-keychain false again, the .env file will be used (no prompts)
  3. run node ./dist/cli/bin.js login --use-keychain true again, the .env file will be used (no prompts)
  4. try a different combination of flags (see swa login -h)

Clone this wiki locally