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

Notification

Icon
Error

ERROR (Analysis):...NullReferenceException
GreenMoose
#1 Posted : Thursday, April 23, 2020 7:44:27 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
[NCrunch Console Tool v4.3.0.13]


I am getting below errors on a old project I am trying to run in a TeamCity agent (docker container). Was the below error due to some bug related generic fixtures or is this a new one? I do not see this when running NCrunch in vstudio.
Quote:

[16:52:38] : [Step 16/23] [LocalAnalysisTask-100] ERROR (Analysis): A failure occurred while analysing the assembly [SnapshotComponent:Proj.Web.NonHttpIntegrationTests.NUnitTests, 32, 62753728]: System.NullReferenceException: Object reference not set to an instance of an object.
[16:52:38] : [Step 16/23] [LocalAnalysisTask-100] at nCrunch.TestExecution.DiscoveredTestMember.GetDistributedCapabilities()
[16:52:38] : [Step 16/23] [LocalAnalysisTask-100] at nCrunch.TestExecution.DefaultDiscoveredTestFactory. (FrameworkTest , ComponentUniqueName )
[16:52:38] : [Step 16/23] [LocalAnalysisTask-100] at nCrunch.TestExecution.DefaultDiscoveredTestFactory.createTestsForFramework(Dictionary`2 discoveredTests, IEnumerable`1 tests, ComponentUniqueName testComponentUniqueName)
[16:52:38] : [Step 16/23] [LocalAnalysisTask-100] at nCrunch.TestExecution.DefaultDiscoveredTestFactory.CreateDiscoveredTests(ReflectedAssembly assembly, IEnumerable`1 tests, ComponentUniqueName testComponentUniqueName)
[16:52:38] : [Step 16/23] [LocalAnalysisTask-100] at nCrunch.TestExecution.TestFinder. . ()
[16:52:38] : [Step 16/23] [LocalAnalysisTask-100] at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
[16:52:38] : [Step 16/23] [LocalAnalysisTask-100] at nCrunch.TestExecution.TestFinder. . ()
[16:52:38] : [Step 16/23] [LocalAnalysisTask-100] at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
[16:52:38] : [Step 16/23] [LocalAnalysisTask-100] at nCrunch.TestExecution.TestFinder.FindTestsForFrameworks(ReflectedAssembly assembly, FilePath assemblyFilePath, IList`1 referencedAssemblyFilePaths, DescribedTestFrameworkDiscoverer[] describedDiscoverers, ComponentUniqueName testComponentUniqueName, PlatformType platformType, DynamicProxy[] dynamicProxies)
[16:52:38] : [Step 16/23] [LocalAnalysisTask-100] at nCrunch.TestExecution.RemoteTaskRunner.AnalyseAssembly(DescribedTestFrameworkDiscoverer[] applicableFrameworks, ComponentUniqueName testComponentUniqueName, PerfTracker perfTracker)


Thanks.
Remco
#2 Posted : Friday, April 24, 2020 12:10:14 AM(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)
I think this issue is being caused by a problem with identifying the test fixture during discovery. I expect this issue is probably tied to the structure of your test suite. Do you think you may have any chance of figuring out how to reproduce it?
GreenMoose
#3 Posted : Friday, April 24, 2020 6:32:13 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
Just realized this is same as https://forum.ncrunch.ne...or-generic-fixture.aspx , but since fix for that version is not publicly available (and our license expired 20th of Feb) I will just change the 9 involved fixtures to not be generic.
p.s. I am switching employment next month, going into the Java business instead of C#, so unfortunately I will no longer be using NCrunch except for spare time programming :( d.s.
Remco
#4 Posted : Friday, April 24, 2020 6:36:02 AM(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)
GreenMoose;14672 wrote:

p.s. I am switching employment next month, going into the Java business instead of C#, so unfortunately I will no longer be using NCrunch except for spare time programming :( d.s.


I'm sorry to hear that. We'll miss you!
1 user thanked Remco for this useful post.
GreenMoose on 4/24/2020(UTC)
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.039 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download