Typemock not integerating with VS2017 and NUnit3












2















Trying to debug tests that use TypeMock and I get the following error:



TypeMock.TypeMockException: '
*** Typemock Isolator is currently disabled. Enable using the following:

* Within Visual Studio:
- Use Typemock Smart Runner
- For other runners, Choose Typemock Menu and click "Integrate with Other Runners"

* To run Typemock Isolator as part of an automated process you can:
- run tests via TMockRunner.exe command line tool
- use 'TypeMockStart' tasks for MSBuild or NAnt

For more information consult the documentation (see 'Running Unit Tests in an Automated Build')'


"Integrate with other Runners" is selected.



Versions:




  • Visual Studio: 15.9.4

  • TypeMock: 8.6.5.1

  • NUnit: 3.7.1


Installing the latest versions of TypeMock and NUnit does not fix the issue.



Edit: it works fine when I 'run' the tests. It only fails in 'debug'.










share|improve this question

























  • From Coral: • What runner are you using to run your tests? • Do you use other tools as well (e.g dotCover, Coverage)? It would be helpful if you could send us the logs directly to the following e-mail address: support@typemock.com You can retrieve the logs via (Typemock->Options->Logs-> Mocking ( check SmartRunner as well if you are running via SmartRunner)

    – jessehouwing
    Jan 1 at 12:39











  • I am using the default Microsoft test runner. I'm not running any other tools. I tried your possible solution, but that did not work.

    – David Poxon
    Jan 1 at 22:07











  • Hi @DavidPoxon, I had the same problem with Typemock 8.6.2. I contacted Typemock support and they instructed me to upgrade Nunit test adapter and Nunit to the latest stable version, that solved my issue. You should give it a try

    – HilaB
    Jan 3 at 10:17


















2















Trying to debug tests that use TypeMock and I get the following error:



TypeMock.TypeMockException: '
*** Typemock Isolator is currently disabled. Enable using the following:

* Within Visual Studio:
- Use Typemock Smart Runner
- For other runners, Choose Typemock Menu and click "Integrate with Other Runners"

* To run Typemock Isolator as part of an automated process you can:
- run tests via TMockRunner.exe command line tool
- use 'TypeMockStart' tasks for MSBuild or NAnt

For more information consult the documentation (see 'Running Unit Tests in an Automated Build')'


"Integrate with other Runners" is selected.



Versions:




  • Visual Studio: 15.9.4

  • TypeMock: 8.6.5.1

  • NUnit: 3.7.1


Installing the latest versions of TypeMock and NUnit does not fix the issue.



Edit: it works fine when I 'run' the tests. It only fails in 'debug'.










share|improve this question

























  • From Coral: • What runner are you using to run your tests? • Do you use other tools as well (e.g dotCover, Coverage)? It would be helpful if you could send us the logs directly to the following e-mail address: support@typemock.com You can retrieve the logs via (Typemock->Options->Logs-> Mocking ( check SmartRunner as well if you are running via SmartRunner)

    – jessehouwing
    Jan 1 at 12:39











  • I am using the default Microsoft test runner. I'm not running any other tools. I tried your possible solution, but that did not work.

    – David Poxon
    Jan 1 at 22:07











  • Hi @DavidPoxon, I had the same problem with Typemock 8.6.2. I contacted Typemock support and they instructed me to upgrade Nunit test adapter and Nunit to the latest stable version, that solved my issue. You should give it a try

    – HilaB
    Jan 3 at 10:17
















2












2








2








Trying to debug tests that use TypeMock and I get the following error:



TypeMock.TypeMockException: '
*** Typemock Isolator is currently disabled. Enable using the following:

* Within Visual Studio:
- Use Typemock Smart Runner
- For other runners, Choose Typemock Menu and click "Integrate with Other Runners"

* To run Typemock Isolator as part of an automated process you can:
- run tests via TMockRunner.exe command line tool
- use 'TypeMockStart' tasks for MSBuild or NAnt

For more information consult the documentation (see 'Running Unit Tests in an Automated Build')'


"Integrate with other Runners" is selected.



Versions:




  • Visual Studio: 15.9.4

  • TypeMock: 8.6.5.1

  • NUnit: 3.7.1


Installing the latest versions of TypeMock and NUnit does not fix the issue.



Edit: it works fine when I 'run' the tests. It only fails in 'debug'.










share|improve this question
















Trying to debug tests that use TypeMock and I get the following error:



TypeMock.TypeMockException: '
*** Typemock Isolator is currently disabled. Enable using the following:

* Within Visual Studio:
- Use Typemock Smart Runner
- For other runners, Choose Typemock Menu and click "Integrate with Other Runners"

* To run Typemock Isolator as part of an automated process you can:
- run tests via TMockRunner.exe command line tool
- use 'TypeMockStart' tasks for MSBuild or NAnt

For more information consult the documentation (see 'Running Unit Tests in an Automated Build')'


"Integrate with other Runners" is selected.



Versions:




  • Visual Studio: 15.9.4

  • TypeMock: 8.6.5.1

  • NUnit: 3.7.1


Installing the latest versions of TypeMock and NUnit does not fix the issue.



Edit: it works fine when I 'run' the tests. It only fails in 'debug'.







visual-studio-2017 nunit-3.0 typemock typemock-isolator






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 31 '18 at 4:33







David Poxon

















asked Dec 31 '18 at 4:19









David PoxonDavid Poxon

1,34621737




1,34621737













  • From Coral: • What runner are you using to run your tests? • Do you use other tools as well (e.g dotCover, Coverage)? It would be helpful if you could send us the logs directly to the following e-mail address: support@typemock.com You can retrieve the logs via (Typemock->Options->Logs-> Mocking ( check SmartRunner as well if you are running via SmartRunner)

    – jessehouwing
    Jan 1 at 12:39











  • I am using the default Microsoft test runner. I'm not running any other tools. I tried your possible solution, but that did not work.

    – David Poxon
    Jan 1 at 22:07











  • Hi @DavidPoxon, I had the same problem with Typemock 8.6.2. I contacted Typemock support and they instructed me to upgrade Nunit test adapter and Nunit to the latest stable version, that solved my issue. You should give it a try

    – HilaB
    Jan 3 at 10:17





















  • From Coral: • What runner are you using to run your tests? • Do you use other tools as well (e.g dotCover, Coverage)? It would be helpful if you could send us the logs directly to the following e-mail address: support@typemock.com You can retrieve the logs via (Typemock->Options->Logs-> Mocking ( check SmartRunner as well if you are running via SmartRunner)

    – jessehouwing
    Jan 1 at 12:39











  • I am using the default Microsoft test runner. I'm not running any other tools. I tried your possible solution, but that did not work.

    – David Poxon
    Jan 1 at 22:07











  • Hi @DavidPoxon, I had the same problem with Typemock 8.6.2. I contacted Typemock support and they instructed me to upgrade Nunit test adapter and Nunit to the latest stable version, that solved my issue. You should give it a try

    – HilaB
    Jan 3 at 10:17



















From Coral: • What runner are you using to run your tests? • Do you use other tools as well (e.g dotCover, Coverage)? It would be helpful if you could send us the logs directly to the following e-mail address: support@typemock.com You can retrieve the logs via (Typemock->Options->Logs-> Mocking ( check SmartRunner as well if you are running via SmartRunner)

– jessehouwing
Jan 1 at 12:39





From Coral: • What runner are you using to run your tests? • Do you use other tools as well (e.g dotCover, Coverage)? It would be helpful if you could send us the logs directly to the following e-mail address: support@typemock.com You can retrieve the logs via (Typemock->Options->Logs-> Mocking ( check SmartRunner as well if you are running via SmartRunner)

– jessehouwing
Jan 1 at 12:39













I am using the default Microsoft test runner. I'm not running any other tools. I tried your possible solution, but that did not work.

– David Poxon
Jan 1 at 22:07





I am using the default Microsoft test runner. I'm not running any other tools. I tried your possible solution, but that did not work.

– David Poxon
Jan 1 at 22:07













Hi @DavidPoxon, I had the same problem with Typemock 8.6.2. I contacted Typemock support and they instructed me to upgrade Nunit test adapter and Nunit to the latest stable version, that solved my issue. You should give it a try

– HilaB
Jan 3 at 10:17







Hi @DavidPoxon, I had the same problem with Typemock 8.6.2. I contacted Typemock support and they instructed me to upgrade Nunit test adapter and Nunit to the latest stable version, that solved my issue. You should give it a try

– HilaB
Jan 3 at 10:17














2 Answers
2






active

oldest

votes


















1














The solution to this problem (as provided by TypeMock Support) was as follows.



Create a file named knownRunners.dat in C:Program Files (x86)TypemockIsolator8.6 (TypeMock remarked that this might not be the location of my TypeMock 8.6 installation - so it would be best to confirm.) The contents of the file should be:



testhost.x86.exe
testhost.exe


After doing this I restarted Visual Studio, and I could debug tests without any issues.






share|improve this answer

































    -2














    My name is Coral, and I work for Typemock.



    I noticed by chance your post here and I'd like to help you :)



    Do you mind answering the following questions, please:



    • What runner are you using to run your tests?
    • Do you use other tools as well (e.g dotCover, Coverage)?



    Additionally, I'd appreciate it if you could run following task for me:



    Go to Typemock->Options->Mocking Integration and check that "Enable Mocking integration" and
    "Enable Auto Linking(with other Coverage Tools)" boxes are checked too.
    Then, Open Developer Command Prompt for VS2017 as an admin
    - Run the command: devenv /Setup
    - Wait until it finishes
    - Open your solution



    Try to debug your tests now and please let me know if this solves the issue.



    It would be helpful if you could send us the logs directly to the following e-mail address: support@typemock.com



    You can retrieve the logs via (Typemock->Options->Logs-> Mocking ( check SmartRunner as well if you are running via SmartRunner)



    I hope this helps. In the future, feel free to open a ticket at Typemock support:
    https://typemock.freshdesk.com/support/tickets/new






    share|improve this answer
























    • Hey Coral, this doesn't answer the question and contains a lot of support details. It would be better suited as a comment below the question to help with troubleshooting. Then when the trouble has been shot, add a solution here for this particular problem.

      – jessehouwing
      Jan 1 at 12:38











    • Hi Coral, I have responded to your questions as a comment to my original post. Thank you!

      – David Poxon
      Jan 1 at 22:08











    • Hey David, please send us the logs to Support@typemock.com

      – CoralTypemock
      Jan 2 at 6:49











    • In addition, please mention if you are debugging via SmartRunner or via MS test runner. Thanks! @DavidPoxon

      – CoralTypemock
      Jan 2 at 7:57











    • @jessehouwing Alright, I understand. Thanks.

      – CoralTypemock
      Jan 2 at 7:57











    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53983541%2ftypemock-not-integerating-with-vs2017-and-nunit3%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    The solution to this problem (as provided by TypeMock Support) was as follows.



    Create a file named knownRunners.dat in C:Program Files (x86)TypemockIsolator8.6 (TypeMock remarked that this might not be the location of my TypeMock 8.6 installation - so it would be best to confirm.) The contents of the file should be:



    testhost.x86.exe
    testhost.exe


    After doing this I restarted Visual Studio, and I could debug tests without any issues.






    share|improve this answer






























      1














      The solution to this problem (as provided by TypeMock Support) was as follows.



      Create a file named knownRunners.dat in C:Program Files (x86)TypemockIsolator8.6 (TypeMock remarked that this might not be the location of my TypeMock 8.6 installation - so it would be best to confirm.) The contents of the file should be:



      testhost.x86.exe
      testhost.exe


      After doing this I restarted Visual Studio, and I could debug tests without any issues.






      share|improve this answer




























        1












        1








        1







        The solution to this problem (as provided by TypeMock Support) was as follows.



        Create a file named knownRunners.dat in C:Program Files (x86)TypemockIsolator8.6 (TypeMock remarked that this might not be the location of my TypeMock 8.6 installation - so it would be best to confirm.) The contents of the file should be:



        testhost.x86.exe
        testhost.exe


        After doing this I restarted Visual Studio, and I could debug tests without any issues.






        share|improve this answer















        The solution to this problem (as provided by TypeMock Support) was as follows.



        Create a file named knownRunners.dat in C:Program Files (x86)TypemockIsolator8.6 (TypeMock remarked that this might not be the location of my TypeMock 8.6 installation - so it would be best to confirm.) The contents of the file should be:



        testhost.x86.exe
        testhost.exe


        After doing this I restarted Visual Studio, and I could debug tests without any issues.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 5 at 3:13

























        answered Feb 5 at 1:10









        David PoxonDavid Poxon

        1,34621737




        1,34621737

























            -2














            My name is Coral, and I work for Typemock.



            I noticed by chance your post here and I'd like to help you :)



            Do you mind answering the following questions, please:



            • What runner are you using to run your tests?
            • Do you use other tools as well (e.g dotCover, Coverage)?



            Additionally, I'd appreciate it if you could run following task for me:



            Go to Typemock->Options->Mocking Integration and check that "Enable Mocking integration" and
            "Enable Auto Linking(with other Coverage Tools)" boxes are checked too.
            Then, Open Developer Command Prompt for VS2017 as an admin
            - Run the command: devenv /Setup
            - Wait until it finishes
            - Open your solution



            Try to debug your tests now and please let me know if this solves the issue.



            It would be helpful if you could send us the logs directly to the following e-mail address: support@typemock.com



            You can retrieve the logs via (Typemock->Options->Logs-> Mocking ( check SmartRunner as well if you are running via SmartRunner)



            I hope this helps. In the future, feel free to open a ticket at Typemock support:
            https://typemock.freshdesk.com/support/tickets/new






            share|improve this answer
























            • Hey Coral, this doesn't answer the question and contains a lot of support details. It would be better suited as a comment below the question to help with troubleshooting. Then when the trouble has been shot, add a solution here for this particular problem.

              – jessehouwing
              Jan 1 at 12:38











            • Hi Coral, I have responded to your questions as a comment to my original post. Thank you!

              – David Poxon
              Jan 1 at 22:08











            • Hey David, please send us the logs to Support@typemock.com

              – CoralTypemock
              Jan 2 at 6:49











            • In addition, please mention if you are debugging via SmartRunner or via MS test runner. Thanks! @DavidPoxon

              – CoralTypemock
              Jan 2 at 7:57











            • @jessehouwing Alright, I understand. Thanks.

              – CoralTypemock
              Jan 2 at 7:57
















            -2














            My name is Coral, and I work for Typemock.



            I noticed by chance your post here and I'd like to help you :)



            Do you mind answering the following questions, please:



            • What runner are you using to run your tests?
            • Do you use other tools as well (e.g dotCover, Coverage)?



            Additionally, I'd appreciate it if you could run following task for me:



            Go to Typemock->Options->Mocking Integration and check that "Enable Mocking integration" and
            "Enable Auto Linking(with other Coverage Tools)" boxes are checked too.
            Then, Open Developer Command Prompt for VS2017 as an admin
            - Run the command: devenv /Setup
            - Wait until it finishes
            - Open your solution



            Try to debug your tests now and please let me know if this solves the issue.



            It would be helpful if you could send us the logs directly to the following e-mail address: support@typemock.com



            You can retrieve the logs via (Typemock->Options->Logs-> Mocking ( check SmartRunner as well if you are running via SmartRunner)



            I hope this helps. In the future, feel free to open a ticket at Typemock support:
            https://typemock.freshdesk.com/support/tickets/new






            share|improve this answer
























            • Hey Coral, this doesn't answer the question and contains a lot of support details. It would be better suited as a comment below the question to help with troubleshooting. Then when the trouble has been shot, add a solution here for this particular problem.

              – jessehouwing
              Jan 1 at 12:38











            • Hi Coral, I have responded to your questions as a comment to my original post. Thank you!

              – David Poxon
              Jan 1 at 22:08











            • Hey David, please send us the logs to Support@typemock.com

              – CoralTypemock
              Jan 2 at 6:49











            • In addition, please mention if you are debugging via SmartRunner or via MS test runner. Thanks! @DavidPoxon

              – CoralTypemock
              Jan 2 at 7:57











            • @jessehouwing Alright, I understand. Thanks.

              – CoralTypemock
              Jan 2 at 7:57














            -2












            -2








            -2







            My name is Coral, and I work for Typemock.



            I noticed by chance your post here and I'd like to help you :)



            Do you mind answering the following questions, please:



            • What runner are you using to run your tests?
            • Do you use other tools as well (e.g dotCover, Coverage)?



            Additionally, I'd appreciate it if you could run following task for me:



            Go to Typemock->Options->Mocking Integration and check that "Enable Mocking integration" and
            "Enable Auto Linking(with other Coverage Tools)" boxes are checked too.
            Then, Open Developer Command Prompt for VS2017 as an admin
            - Run the command: devenv /Setup
            - Wait until it finishes
            - Open your solution



            Try to debug your tests now and please let me know if this solves the issue.



            It would be helpful if you could send us the logs directly to the following e-mail address: support@typemock.com



            You can retrieve the logs via (Typemock->Options->Logs-> Mocking ( check SmartRunner as well if you are running via SmartRunner)



            I hope this helps. In the future, feel free to open a ticket at Typemock support:
            https://typemock.freshdesk.com/support/tickets/new






            share|improve this answer













            My name is Coral, and I work for Typemock.



            I noticed by chance your post here and I'd like to help you :)



            Do you mind answering the following questions, please:



            • What runner are you using to run your tests?
            • Do you use other tools as well (e.g dotCover, Coverage)?



            Additionally, I'd appreciate it if you could run following task for me:



            Go to Typemock->Options->Mocking Integration and check that "Enable Mocking integration" and
            "Enable Auto Linking(with other Coverage Tools)" boxes are checked too.
            Then, Open Developer Command Prompt for VS2017 as an admin
            - Run the command: devenv /Setup
            - Wait until it finishes
            - Open your solution



            Try to debug your tests now and please let me know if this solves the issue.



            It would be helpful if you could send us the logs directly to the following e-mail address: support@typemock.com



            You can retrieve the logs via (Typemock->Options->Logs-> Mocking ( check SmartRunner as well if you are running via SmartRunner)



            I hope this helps. In the future, feel free to open a ticket at Typemock support:
            https://typemock.freshdesk.com/support/tickets/new







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 1 at 12:15









            CoralTypemockCoralTypemock

            1




            1













            • Hey Coral, this doesn't answer the question and contains a lot of support details. It would be better suited as a comment below the question to help with troubleshooting. Then when the trouble has been shot, add a solution here for this particular problem.

              – jessehouwing
              Jan 1 at 12:38











            • Hi Coral, I have responded to your questions as a comment to my original post. Thank you!

              – David Poxon
              Jan 1 at 22:08











            • Hey David, please send us the logs to Support@typemock.com

              – CoralTypemock
              Jan 2 at 6:49











            • In addition, please mention if you are debugging via SmartRunner or via MS test runner. Thanks! @DavidPoxon

              – CoralTypemock
              Jan 2 at 7:57











            • @jessehouwing Alright, I understand. Thanks.

              – CoralTypemock
              Jan 2 at 7:57



















            • Hey Coral, this doesn't answer the question and contains a lot of support details. It would be better suited as a comment below the question to help with troubleshooting. Then when the trouble has been shot, add a solution here for this particular problem.

              – jessehouwing
              Jan 1 at 12:38











            • Hi Coral, I have responded to your questions as a comment to my original post. Thank you!

              – David Poxon
              Jan 1 at 22:08











            • Hey David, please send us the logs to Support@typemock.com

              – CoralTypemock
              Jan 2 at 6:49











            • In addition, please mention if you are debugging via SmartRunner or via MS test runner. Thanks! @DavidPoxon

              – CoralTypemock
              Jan 2 at 7:57











            • @jessehouwing Alright, I understand. Thanks.

              – CoralTypemock
              Jan 2 at 7:57

















            Hey Coral, this doesn't answer the question and contains a lot of support details. It would be better suited as a comment below the question to help with troubleshooting. Then when the trouble has been shot, add a solution here for this particular problem.

            – jessehouwing
            Jan 1 at 12:38





            Hey Coral, this doesn't answer the question and contains a lot of support details. It would be better suited as a comment below the question to help with troubleshooting. Then when the trouble has been shot, add a solution here for this particular problem.

            – jessehouwing
            Jan 1 at 12:38













            Hi Coral, I have responded to your questions as a comment to my original post. Thank you!

            – David Poxon
            Jan 1 at 22:08





            Hi Coral, I have responded to your questions as a comment to my original post. Thank you!

            – David Poxon
            Jan 1 at 22:08













            Hey David, please send us the logs to Support@typemock.com

            – CoralTypemock
            Jan 2 at 6:49





            Hey David, please send us the logs to Support@typemock.com

            – CoralTypemock
            Jan 2 at 6:49













            In addition, please mention if you are debugging via SmartRunner or via MS test runner. Thanks! @DavidPoxon

            – CoralTypemock
            Jan 2 at 7:57





            In addition, please mention if you are debugging via SmartRunner or via MS test runner. Thanks! @DavidPoxon

            – CoralTypemock
            Jan 2 at 7:57













            @jessehouwing Alright, I understand. Thanks.

            – CoralTypemock
            Jan 2 at 7:57





            @jessehouwing Alright, I understand. Thanks.

            – CoralTypemock
            Jan 2 at 7:57


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53983541%2ftypemock-not-integerating-with-vs2017-and-nunit3%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            MongoDB - Not Authorized To Execute Command

            How to fix TextFormField cause rebuild widget in Flutter

            Npm cannot find a required file even through it is in the searched directory