Is it possible to run vstest.console.exe in sandbox?

Sandqvist, Jonas
1
Reputation point
I'm trying to run a test executable created in visual studio in the sandbox environment. But running the executable does not give any output in the sandbox environment (have failing tests in the executable).
I have also tried via the wsb file to give the sandbox environment access to "Microsoft Visual Studio\2019\Enterprise" to be able to use vstest.console.exe with testadapterpath set. this gives an error: --list_content=DOT failed with exit code -1073741515... (some dll missing?)
Is there something not installed in the sandbox environment or is vstest.consol.exe not supported?
{count} votes
I start the sandbox with this config file
<Configuration>
<VGpu>Enable</VGpu>
<MemoryInMB>8192</MemoryInMB>
<MappedFolder>
<HostFolder>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise</HostFolder>
<ReadOnly>true</ReadOnly>
</MappedFolder>
</MappedFolders>
<Configuration>
and then in powershell I run
C:\Users\WDAGUtilityAccount\Desktop\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe /TestAdapterPath:"C:\Users\WDAGUtilityAccount\Desktop\Enterprise" .\test.exe
Hi @Sandqvist, Jonas , thank you for your feedback.
Please open
developer Command Prompt for VS 2019
,cd
to the folder where saved the.exe
file to be tested and type to use command likevstest.console.exe test.exe
to run the test. After that, please let me know if there are some error messages reported. Also, please make sure that thistest.exe
file is generated from the test project(Unit Test project maybe).Refer to this screenshot: