## Describe the bug DumpMachine called from Q# unit test (defined using `@Test` attribute) does not print program state. ## To Reproduce [Superposition kata](https://github.com/microsoft/QuantumKatas/blob/main/Superposition) uses DumpMachine to print expected and actual states for each exercise. You can run `dotnet test` on that project to see that there are no state dumps after "The desired state" and "The actual state" (https://github.com/microsoft/QuantumKatas/blob/main/Superposition/Tests.qs). ## Expected behavior Program state is printed in the unit tests. ## System information - OS: Windows 11 - .NET Core Version: 6.0.401 - QDK 0.25.228311 and 0.25.218240 (used to work a year ago) **Additional context** When the same code is invoked from Q# Jupyter Notebook frontend, state dumps are produced successfully.
Describe the bug
DumpMachine called from Q# unit test (defined using
@Testattribute) does not print program state.To Reproduce
Superposition kata uses DumpMachine to print expected and actual states for each exercise. You can run
dotnet teston that project to see that there are no state dumps after "The desired state" and "The actual state" (https://github.com/microsoft/QuantumKatas/blob/main/Superposition/Tests.qs).Expected behavior
Program state is printed in the unit tests.
System information
Additional context
When the same code is invoked from Q# Jupyter Notebook frontend, state dumps are produced successfully.