.net core `dotMemoryUnit`with`dotnet test`

.net core `dotMemoryUnit`with`dotnet test`,.net-core,xunit,dotmemory,.net Core,Xunit,Dotmemory,我通常使用dotnettest运行单元测试。我使用的框架是xunit。因此,我不确定如何使用CLI运行dotMemory单元测试 文件建议: dotMemoryUnit.exe -targetExecutable="C:\NUnit 2.6.4\bin\nunit-console.exe" -returnTargetExitCode --"E:\MyProject\bin\Release\MainTests.dll" 我应该在-targetExecutable中输入什么?它需要一个路径,因此输

我通常使用
dotnettest
运行单元测试。我使用的框架是
xunit
。因此,我不确定如何使用CLI运行dotMemory单元测试

文件建议:

dotMemoryUnit.exe
-targetExecutable="C:\NUnit 2.6.4\bin\nunit-console.exe"
-returnTargetExitCode --"E:\MyProject\bin\Release\MainTests.dll"

我应该在
-targetExecutable
中输入什么?它需要一个路径,因此输入
dotnet test
不起作用。

我尝试使用最新的dotMemory Unit 3.1运行测试,它起作用了

dotmoryunit.exe“c:\Program Files\dotnet\dotnet.exe”--测试“路径\到\解决方案.sln”

对于你的版本来说是

dotmoryunit.exe-targetExecutable=“c:\Program Files\dotnet\dotnet.exe”
-returnTargetExitCode--测试“E:\MyProject\bin\Release\MainTests.dll”