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

Notification

Icon
Error

Fluent Syntax not showing Code coverage
uchinago
#1 Posted : Friday, January 11, 2019 1:55:36 PM(UTC)
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?

GreenMoose
#2 Posted : Friday, January 11, 2019 3:06:29 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)
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.
Remco on 1/11/2019(UTC)
uchinago
#3 Posted : Friday, January 11, 2019 3:15:05 PM(UTC)
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.
GreenMoose on 1/11/2019(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.031 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download