JustMockRunner fails to run console test runners

5 posts, 0 answers
  1. Al
    Al avatar
    5 posts
    Member since:
    Apr 2012

    Posted 10 Apr 2012 Link to this post

    I can get the JustMockRunner to execute the xUnit.net gui test runner (xunit.gui.clr4.exe) without a problem. When I try to get it run the xUnit.net console runner (xunit.console.clr4.exe) it just seems to hang up on the command line requiring Ctrl+C to cancel the run. 

    This works:
    C:\apps\JustMock\Libraries\JustMockRunner.exe ..\..\..\..\tools\xunit.net\xunit.gui.clr4.exe MyTests.dll

    This locks up:
    C:\apps\JustMock\Libraries\JustMockRunner.exe ..\..\..\..\tools\xunit.net\xunit.console.clr4.exe MyTests.dll

    It also fails with NSpec console runner:
    C:\apps\JustMock\Libraries\JustMockRunner.exe ..\..\..\..\tools\nspec\NSpecRunner.exe MyTests_nspec.dll

    Any ideas would be appreciated. 
  2. Al
    Al avatar
    5 posts
    Member since:
    Apr 2012

    Posted 10 Apr 2012 Link to this post

    The xunit.console.clr4.exe does eventually run after a few minutes.

    I still can't get NSpecRunner.exe to work - even waiting over 30 minutes.

    I have one test that uses JustMock to mock a SharePoint object
    var fakeSPWebApp = Mock.Create<SPWebApplication>();
    Mock.Arrange(() => fakeSPWebApp.OutboundMailServiceInstance.Server.Address).Returns(SmtpHostName);
    Mock.Arrange(() => fakeSPWebApp.OutboundMailSenderAddress).Returns(EmailAddressForSender);
    Mock.Arrange(() => fakeSPWebApp.OutboundMailReplyToAddress).Returns(EmailAddressForReplyTo);
  3. DevCraft R3 2016 release webinar banner
  4. Ricky
    Admin
    Ricky avatar
    467 posts

    Posted 12 Apr 2012 Link to this post

    Hi Gonzalez,

    Thanks again for reporting the issue.

    However, I would request you to send me the sample that you are working along with the steps that will get me to the exception. In this way, we will be able to pinpoint the actual issue that you are facing.

    Kind Regards,
    Ricky 
    the Telerik team

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

  5. Al
    Al avatar
    5 posts
    Member since:
    Apr 2012

    Posted 12 Apr 2012 Link to this post

    OK, how do I send it to you?
  6. Ricky
    Admin
    Ricky avatar
    467 posts

    Posted 13 Apr 2012 Link to this post

    Hi Gonzalez,

    Thanks again for your reply. You can directly attach the sample in this post. 

    Kind Regards
    Ricky
    the Telerik team

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

Back to Top
DevCraft R3 2016 release webinar banner