Use dotMemory Unit Standalone Launcher
If you run tests with a standalone unit test runner (rather than Visual Studio or JetBrains Rider) or want to make memory tests a part of your continuous integration builds, then you need a standalone dotMemory Unit launcher – the dotMemoryUnit.exe command-line tool.
dotMemoryUnit.exe works as a mediator – it runs a particular standalone unit test runner and provides support for dotMemory Unit calls in the running tests.
For the detailed information on available tool parameters, run:
Run tests using dotMemoryUnit.exe
In the simplest case, all you have to do is specify the path to your unit test runner and its arguments. For example, this is how you can run tests from a file (say, MainTests.dll) with NUnit and
Tool's output contains data on successful and failed tests. For example:
dotMemoryUnit.exe exit code
By default, if tool finishes its work successfully, its exit code is 0. This is not very convenient when you run the tool on the CI server as you need to know whether there are any failed tests in the build. In such a case, the best option is to make dotMemoryUnit.exe return the exit code of your unit test runner. To do this, you should use the
--propagate-exit-code argument. For example:
Note that arguments to the target executable must always be passed in the end of the command.