You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on System.Configuration code coverage #20040 and a little bit stuck with coverage report.
Problem description
There is a test, that covers exception catch and throw in method, but both local and CI code coverage reports show, that the lines of method code are not covered.
I've checked that this line is reached by changing exception to ArgumentException("hahaha") in method and test, but the report still shows no coverage. Test works fine.
thank you, that explains the case. So, we can't relay on report, that estimates coverage.
IMHO, we should change the test project to not include this code, and then write tests that exercise this code in the product via the public entrypoints.
I'm working on System.Configuration code coverage #20040 and a little bit stuck with coverage report.
Problem description
There is a test, that covers exception catch and throw in method, but both local and CI code coverage reports show, that the lines of method code are not covered.
Details
Test for System.Configuration.TypeUtil
TypeUtil line, that works for test
Code Coverage Report, navigate to
System.Configuration.TypeUtil
, clickGetType(System.String,System.Boolean)
method to see code coverage.I've checked that this line is reached by changing exception to
ArgumentException("hahaha")
in method and test, but the report still shows no coverage. Test works fine.cc @karelz @JeremyKuhne @danmosemsft @dhoehna
The text was updated successfully, but these errors were encountered: