зеркало из https://github.com/microsoft/iqsharp.git
922da16e89 | ||
---|---|---|
.. | ||
Notebooks | ||
Python | ||
All.Tests.ps1 | ||
Install-Artifacts.ps1 | ||
README.md | ||
Run.ps1 |
README.md
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:
- 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 packagesNUGET_VERSION
: with the packages' NuGet version.PYTHON_OUTDIR
: with the location of the build's Python wheels
- 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=""
- 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.