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?
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?
No it does not... which might explain why it doesn't show coverage there.
Wonder why..
Thanks didn't even think of trying that.
Wonder why..
Thanks didn't even think of trying that.
Post a reply
Log in to reply.