NCrunch Forum
»
General Support
»
Daily Usage Issues
»
Fluent Syntax not showing Code coverage
Rank: Newbie
Groups: Registered
Joined: 1/11/2019(UTC) Posts: 2 Location: United States of America
Was thanked: 1 time(s) in 1 post(s)
|
The following syntax does not show code coverage on the majority of the code
1. services.AddMvc() 2. .SetCompatibilityVersion(CompatibilityVersion.Version_2_1) 3. .AddJsonOptions(options => 4. { 5. options.SerializerSettings.Converters.Add(new Newtonsoft.Json.Converters.StringEnumConverter()); 6. options.SerializerSettings.NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore; 7. });
Ncrunch shows code coverage on line 1 only. Lines 2 and 3 do not have any indication on them Lines 4 through 7 show no coverage.
How do I configure NCrunch to show these as covered?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/17/2012(UTC) Posts: 507
Thanks: 145 times Was thanked: 66 time(s) in 64 post(s)
|
Is debugger breaking on line 5 if you put a breakpoint on it and select "debug selected test" in NCrunch for test that is supposed to cover it?
|
1 user thanked GreenMoose for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/11/2019(UTC) Posts: 2 Location: United States of America
Was thanked: 1 time(s) in 1 post(s)
|
No it does not... which might explain why it doesn't show coverage there. Wonder why.. Thanks didn't even think of trying that.
|
1 user thanked uchinago for this useful post.
|
|
|
NCrunch Forum
»
General Support
»
Daily Usage Issues
»
Fluent Syntax not showing Code coverage
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.NETThis page was generated in 0.031 seconds.