# Testing Q# Code
The samples in this folder demonstrate different approaches to testing Q# code using AQDK built-in tools.
## Installation
- 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).
- Install `pytest` Python package.
## Running the samples
Open the directory containing the test (for example, `samples/testing/operations`), and run `pytest` command.
## Reference Links:
- [Q# Testing guide](https://learn.microsoft.com/azure/quantum/user-guide/testing-debugging).
- [Getting started with the QDK](https://learn.microsoft.com/azure/quantum/install-overview-qdk).
- [Getting started with Pytest](https://docs.pytest.org/en/stable/getting-started.html).microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
samples/testing/README.md
15lines · modepreview