Hi Yi Su,
To enable the JustMock profiler through command line you will need to have the proper environment variables set as follows:
- JUSTMOCK_INSTANCE = 1
- COR_ENABLE_PROFILING = 1
- COR_PROFILER = {B7ABE522-A68F-44F2-925B-81E7488E9EC0}
In order to achieve this, I would recommend you using the JustMockRunner, as it automatically takes care for this. You could try the following approach:
This will set the profiler variables and will call mstest runner to execute the tests in the certain assembly.
Also, you could further check
this link for more information about the "Profiler not enabled" exception, and
this about integrating JustMock on build machines.
I hope this helps. Please, contact us again if you have more questions.
All the best,
Kaloyan
the Telerik team
Share what you think about JustTrace & JustMock with us, so we can become even better! You can use the built-in feedback tool inside JustTrace, our
forums, or our
JustTrace or
JustMock portals.