Skip to content

How to add and run tests? #18305

Answered by dingmeng-xue
diogomaul asked this question in Q&A
Discussion options

You must be logged in to vote

@diogomaul , thanks very much for your help and contribution. Please feel free to open PR at the first. We will look into your change and give you suggestions.

Here is doc https://github.com/Azure/azure-powershell/blob/main/documentation/testing-docs/using-azure-test-framework.md. Please let us know your question.

In short:

  • you need to create a test script and add cs file to trigger it.
  • Configure your environment to include SP used for test recording and configure test mode by AZURE_TEST_MODE
  • Once test is recorded, you can find a recorded HTTP payload in json
  • Copy json file to test source code folder
  • Change AZURE_TEST_MODE to Playback and rerun your test case. You should see test case ca…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dingmeng-xue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants