Skip to content

GA Test Plan

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

Before running each test plan, install 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
  6. npm link

swa init

TODO

swa login

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
    • you might be asked to enter your system password.
    • the browser window will open
    • login with your Azure account
  5. login without keychain: node ./dist/cli/bin.js login --no-use-keychain
    • the browser window will open
    • login with your Azure account
  6. make sure the file ​.env ​has been created with the right project credentials
AZURE_SUBSCRIPTION_ID=00000000-0000-0000-0000-000000000000
AZURE_TENANT_ID=00000000-0000-0000-0000-000000000000
  1. make sure the .gitignore 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)

swa start

TODO

swa deploy

TODO

Clone this wiki locally