microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
samples/testing/README.md
15lines · modecode
| 1 | # Testing Q# Code |
| 2 | |
| 3 | The samples in this folder demonstrate different approaches to testing Q# code using AQDK built-in tools. |
| 4 | |
| 5 | ## Installation |
| 6 | - Install the `qsharp` Python package by following the instructions mentioned [here](https://learn.microsoft.com/azure/quantum/install-overview-qdk#add-support-for-python-and-jupyter-notebooks). |
| 7 | - Install `pytest` Python package. |
| 8 | |
| 9 | ## Running the samples |
| 10 | Open the directory containing the test (for example, `samples/testing/operations`), and run `pytest` command. |
| 11 | |
| 12 | ## Reference Links: |
| 13 | - [Q# Testing guide](https://learn.microsoft.com/azure/quantum/user-guide/testing-debugging). |
| 14 | - [Getting started with the QDK](https://learn.microsoft.com/azure/quantum/install-overview-qdk). |
| 15 | - [Getting started with Pytest](https://docs.pytest.org/en/stable/getting-started.html). |
| 16 | |