Skip to content

Latest commit

 

History

History
 
 

tests.live

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

IQ# Live tests

This folder contains Live tests for IQ#. Live tests are end-to-end tests that require an actual connection with Azure Quantum to complete successfully.

Notice these tests are currently not part of IQ#'s CI pipeline. Please run them manually if making Azure Quantum related changes.

Running locally

To run these tests:

  1. Use Install-Artifacts.ps1 to install IQ#, either from from the local /src folder, or from build artifacts by specifying the following environment variables:
    • NUGET_OUTDIR: with the location of the build's NuGet packages
    • NUGET_VERSION: with the packages' NuGet version.
    • PYTHON_OUTDIR: with the location of the build's Python wheels
  2. Set up the following environment variables pointing to an Azure Quantum Workspace that has the Microsoft, IonQ and Quantinuum providers enabled:
    • $Env:AZURE_QUANTUM_SUBSCRIPTION_ID=""
    • $Env:AZURE_QUANTUM_WORKSPACE_RG=""
    • $Env:AZURE_QUANTUM_WORKSPACE_LOCATION=""
    • $Env:AZURE_QUANTUM_WORKSPACE_NAME=""
    • $Env:AZURE_TENANT_ID=""
    • $Env:AZURE_CLIENT_ID=""
    • $Env:AZURE_CLIENT_SECRET=""
  3. Use .\Run.ps1 -SkipInstall to run all the tests.

Optionally, instead of providing AZURE_CLIENT_ID AND AZURE_CLIENT_SECRET as environment variables, you can login to Azure using either: * the Azure Account extension in VS Code * az login from the Azure CLI and change the value of the credential= parameter in the tests to the corresponding value.