seesharper / LightInject.Interception

LightInject.Interception supports Aspect Oriented Programming through proxy-based method interceptors.
11 stars 7 forks source link

LightInject.WebApi/build/common.csx ValidateCodeCoverage string comparison failure #24

Open artem-voropaev opened 5 years ago

artem-voropaev commented 5 years ago

This regex var coverage = Regex.Match(summaryContent, "LineCoverage>(.*)<",RegexOptions.IgnoreCase).Groups[1].Captures[0].Value; gets from report "100% (886 of 886)" instead of "100%" and then compares it with if (coverage != "100%") As result throw new InvalidOperationException("Deploy failed. Test coverage is only " + coverage); And AppVeyor build fails