Is there a way to use the EQATEC profiler on my NUnit Unit tests?

I would like to use the EQATEC profiler in my NUnit unit tests, as before, when I used JetTrack dotTrace in combination with TestDriven.NET and NUnit. Is there any way to do this? Be that as it may, it seems to me that I need to wrap my UnitTest in a console application, and then use the profiler.

+5
source share
2 answers

EQATEC Profiler is really suitable for automation: it has a command line version and API with which you can control most aspects of profiling, and you just have to use it in your unit tests.

The API is described in the profiler user guide . What you want to do is probably something like this:

  • First add a link to the profiler API. You will find builds for four different platforms in the installed RuntimeDLL folder. You are probably looking EQATEC.Profiler.RuntimeFullNet.dll, but there are also implementations for NetCF, Silverlight, and WP7.
  • , , , EQATEC.Profiler.Runtime.TakeSnapshot(). .

, unit , EQATECProfilerCmd.exe. :

EQATECProfilerCmd -build <your app directory>
+3

build Post-build Visual Studio. EQATECProfilerCmd , :

"C:\Program Files (x86)\EQATEC\EQATECProfiler\EQATECProfilerCmd" -build "$ (TargetDir)."

, . , , , .

0