NCover

4 posts, 0 answers
  1. Craig
    Craig avatar
    20 posts
    Member since:
    Jun 2012

    Posted 18 Dec 2011 Link to this post

    Hi,

    Is it possible to run the commercial version of JustMock together with NCover for sealed classes?

    If so, how is this done? When we try to run them together the unit tests all fail because it can't create the mocked objects


    Craig
  2. Ricky
    Admin
    Ricky avatar
    467 posts

    Posted 20 Dec 2011 Link to this post

    Hi Craig,

    Thanks again for bringing up the question. Before you run the tests with JM commercial features using NCover, you need to make sure that the following two variables are set properly:

    COR_ENABLE_PROFILING=0x1
    COR_PROFILER={D1087F67-BEE8-4f53-B27A-4E01F64F3DA8}

    Generally, you can do this by create a simple *.bat file that will first set the environment variables before running the tests. I would also recommend you to take a look at the following section in online documentation:

    http://www.telerik.com/help/justmock/integration.html

    Finally, there is a tiny tool that I have created to run JustMock outside of visual studio, you can check it out to pipe NCover along with the test assemblies over a test framework.

    http://weblogs.asp.net/mehfuzh/archive/2011/05/24/running-justmock-profiler-outside-of-visual-studio.aspx

    Hope this solves your problem.

    Kind regards,
    Mehfuz
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft R3 2016 release webinar banner
  4. Craig
    Craig avatar
    20 posts
    Member since:
    Jun 2012

    Posted 20 Dec 2011 Link to this post

    Thanks Mehfuz,

    We had looked at the documentation you mentioned, but these two variables are not mentioned.


    Craig
  5. Ricky
    Admin
    Ricky avatar
    467 posts

    Posted 22 Dec 2011 Link to this post

    Hi Craig,

    Thanks for your reply. Yes these two variables are not mentioned in the documentation as generally we don’t recommend playing with them but in some special cases those are to be dealt manually.

    However, I would ask the documentation team to include those two variables in some part of the manual if you would like to set them manually.

    Kind Regards,
    Mehfuz
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top