Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Analysis fails
DanHil
#1 Posted : Monday, December 3, 2012 1:52:07 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 11/12/2012(UTC)
Posts: 85

Thanks: 11 times
Was thanked: 3 time(s) in 3 post(s)
I have an interesting problem:

The anaylsis in NCrunch fails with the following error:

Quote:

[14:46:51.6461-AnalysisTask-62] ERROR (Analysis): A failure occurred while analysing the assembly [SnapshotComponent: GA.CoreData.IntegrationTests, 12, 37663886]: System.InvalidCastException: Specified cast is not valid.
at Ploeh.AutoFixture.SpecimenFactory.CreateAnonymous[T](ISpecimenContext context, T seed)
at Ploeh.AutoFixture.SpecimenFactory.CreateAnonymous[T](ISpecimenContext context)
at GA.CoreData.IntegrationTests.CoreDataCustomization.AnonymousCreationCustomization.<Customize>b__a(ICustomizationComposer`1 c) in C:\Data\Projects\GlobaleAdministration\Main\Source\GA.CoreData.IntegrationTests\TestFoundation\CoreDataCustomization.cs:line 44
at Ploeh.AutoFixture.Fixture.Customize[T](Func`2 composerTransformation)
at GA.CoreData.IntegrationTests.CoreDataCustomization.AnonymousCreationCustomization.Customize(IFixture fixture) in C:\Data\Projects\GlobaleAdministration\Main\Source\GA.CoreData.IntegrationTests\TestFoundation\CoreDataCustomization.cs:line 43
at Ploeh.AutoFixture.CompositeCustomization.Customize(IFixture fixture)
at Ploeh.AutoFixture.Fixture.Customize(ICustomization customization)
at GA.CoreData.IntegrationTests.AutoCoreDataDataAttribute..ctor() in C:\Data\Projects\GlobaleAdministration\Main\Source\GA.CoreData.IntegrationTests\TestFoundation\AutoCoreDataDataAttribute.cs:line 14
at System.RuntimeTypeHandle.CreateCaInstance(RuntimeType type, IRuntimeMethodInfo ctor)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, Boolean inherit)
at nCrunch.Reflection.Clr.ClrMember.get_AttributesWithInheritance()
at nCrunch.Reflection.ReflectedMember.GetValuesFromNamedAttributes[T](String[] attributeTypeNames, Func`2 getValueFunc)
at nCrunch.TestExecution.TestMetadataExtractor.#=qOFdBi$rmmWqFlHmpCKP$XDu66wTkQlhj6FKosCyjA9aHie4ZWQbeuNF4vptIG1bL(ReflectedAssembly #=qQoekza42$y53QJqETLiNQQ==, FrameworkTest #=qpe9kZLPnD6eMQIFpIA5dYg==, ReflectedMember #=qFS01TeoTm1pwQU_1sJdxlg==)
at nCrunch.TestExecution.TestMetadataExtractor.InjectNCrunchMetadataIntoFrameworkTest(ReflectedAssembly assembly, FrameworkTest test)
at nCrunch.TestExecution.TestFinder.#=qqqSIuIr31fwOOYp7nhxaFr71u4s36rsHBPSi0X15BgI=(IEnumerable`1 #=qnSotmitojVEEkWNFX5xaLQ==)
at nCrunch.TestExecution.TestFinder.#=qhN6uffUoK3Q4upthKoYwIERO371nHLRpWeTjDfnIoj0=(IList`1 #=q4DCauN2fFW8zwc_q6VafZA==)
at nCrunch.TestExecution.TestFinder.FindTestsForFrameworks(ReflectedAssembly assembly, String assemblyFilePath, String[] referencedAssemblyFilePaths, TestFrameworkDescription[] frameworks)
at nCrunch.TestExecution.RemoteTaskRunner.AnalyseAssembly(TestFrameworkDescription[] applicableFrameworks)


"GA.CoreData.IntegrationTests" is the project of my integration tests, Ploeh.AutoFixture is a library these tests are using.
It looks like my code still has a problem and throws an exception in a constructor. But that should not bring down NCrunch.
Remco
#2 Posted : Monday, December 3, 2012 7:40:52 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Agreed. Thanks for reporting this, I'll see what I can do about fixing it.


Cheers,

Remco
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.037 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download