This is a migrated thread and some comments may be shown as answers.

JustMockRunner fails to run console test runners

4 Answers 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Al
Top achievements
Rank 1
Al asked on 10 Apr 2012, 04:17 PM
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. 

4 Answers, 1 is accepted

Sort by
0
Al
Top achievements
Rank 1
answered on 10 Apr 2012, 07:57 PM
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);
0
Ricky
Telerik team
answered on 12 Apr 2012, 06:16 PM
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 >>

0
Al
Top achievements
Rank 1
answered on 12 Apr 2012, 07:39 PM
OK, how do I send it to you?
0
Ricky
Telerik team
answered on 13 Apr 2012, 08:34 PM
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 >>

Tags
General Discussions
Asked by
Al
Top achievements
Rank 1
Answers by
Al
Top achievements
Rank 1
Ricky
Telerik team
Share this question
or