Base solution for your next web application

Activities of "altrb"

Hi!

I was following the pattern in the CodeProject article on using Effort with Abp [http://www.codeproject.com/Articles/871786/Unit-testing-in-Csharp-using-xUnit-Entity-Framewor]) and have it all working and some 100 green unit tests. The problem is though that the test suite now takes a long time to run. I did some profiling on my code and found that the bulk of the time is spent in the AbpBootstrapper.Initialize() code

var bootstrapper = new AbpBootstrapper(LocalIocManager);
            bootstrapper.Initialize();

Since the environment is re-created for each UT, and the init time takes 0.4 seconds, my suite that recently took some 13 seconds now take more like 45. Seems to me the reason is that each UT now causes all modules to be loaded and initialized including the standard call to

IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());

...a lot of disk access which adds up. Might be other things too.

Any ideas on how to speed up things?

Showing 1 to 1 of 1 entries