asmagin / Cake.Sitecore

The library provides a set of pre-build CAKE tasks. Those tasks could be used to simplify a configuration of CI/CD for Helix-based Sitecore projects.
https://cakebuild.net/addins/sitecore/
MIT License
11 stars 12 forks source link

OpenCover throwing errors during a build process #12

Closed asmagin closed 6 years ago

asmagin commented 6 years ago

When running task Unit Tests :: Run Server Tests following error appears in logs.

Sources directory not set, will try to guess. This might not work properly when merging results from multiple test assemblies.

Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: str
   at System.Text.RegularExpressions.Regex.Escape(String str)
   at Palmmedia.OpenCoverToCoberturaConverter.Converter.CreateRootElement(XDocument openCoverReport, String sourcesDirectory, Boolean includeGettersSetters)
   at Palmmedia.OpenCoverToCoberturaConverter.Converter.ConvertToCobertura(XDocument openCoverReport, String sourcesDirectory, Boolean includeGettersSetters)
   at Palmmedia.OpenCoverToCoberturaConverter.Program.Main(String[] args)
asmagin commented 6 years ago

Fixed by https://github.com/danielpalme/OpenCoverToCoberturaConverter/issues/21