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

JustCode TestRunner major delay when using Enterprise Library

1 Answer 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Barry
Top achievements
Rank 1
Barry asked on 21 Oct 2012, 01:30 PM
I'm am noticing when using VS2010 and running MSTest unit test that there is a major lag/delay when using in conjunction with the Enterprise Library.  Specifically when registering the EnterpriseLIbraryCoreExtensions.  The below code is just to show you the delay.  When stepping through in debug, the JustCode test runner will sit for close to 2 minutes when executing AddNewExtension.  This behavior is not seen when running the same test in VS2012 using JustCode and the test runner. 

[TestMethod]
public void TestMethod1()
{
    var container = new UnityContainer();
    container.AddNewExtension<EnterpriseLibraryCoreExtension>();
 
    Assert.IsTrue(true);
 
}

There is no delay in running this same test through the built in MSTest runner within VS2010.

1 Answer, 1 is accepted

Sort by
0
Barry
Top achievements
Rank 1
answered on 21 Oct 2012, 06:32 PM
Just quick update to this.  The issue seems to be specific to VS2010 and MSTest when using the Enterprise Library.  I created a NUnit test and there was just a small delay before the test completed.

Regards,
Barry
Tags
General Discussions
Asked by
Barry
Top achievements
Rank 1
Answers by
Barry
Top achievements
Rank 1
Share this question
or