Hi Guys,
I have constant issues with my unit tests for my X++ classes in Visual Studio.
1. Issue - My new test is not discovered by the test runner
When I write a new Test Method and then build the test Project I face constantly this error message:
[9/14/2021 8:19:06 AM Error] System.InvalidOperationException: The following TestContainer was not found 'C:\TFS\Development\Projects\BECUCC\49471_PDMInterfaceImproveQualityAssurance\49471_PDMInterfaceImproveQualityAssurance.Tests\49471_PDMInterfaceImproveQualityAssurance.Tests.rnrproj'
at Microsoft.VisualStudio.TestWindow.Controller.TestContainerProvider.<GetTestContainerAsync>d__61.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.TestWindow.Data.InMemory.InMemoryDataStorage.<AccumulateTestCaseInternal>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.TestWindow.Data.InMemory.InMemoryUnitTestWriter.<WriteTestCaseInternal>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.TestWindow.Data.InMemory.InMemoryUnitTestWriter.<WriteTestCasesInternal>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.TestWindow.Data.UnitTestWriter.<WriteTestCases>d__34.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.TestWindow.Controller.TestDiscoveryRequest.<DiscoveredTests>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.TestWindow.Controller.TestDiscoveryRequest.<<OnDiscoveryCompleted>b__36_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.TestWindow.Data.UnitTestStorage.<ExecuteWhileOpen>d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.TestWindow.Controller.Request.<ExecuteWhileStorageIsOpen>d__100.MoveNext()
The only workaround I have found so far is to stop Visual Studio and the xppc Prozess and then start from scratch.
2. Issue - Executing the test never stops
The test which I have executed never ends. The test explorer indicates infinitely the test is still executing.

I am really curious if you guys have the same experience and if some hints & tips exists which can make this experience simply better because writing tests is for me very important.
Cheers Guys