Skip to content

easy fix to support *.coveragexml #8

@BrannonKing

Description

@BrannonKing

The VisualCoverage tool suffers from the same issue reported here:

http://stackoverflow.com/questions/4170803/programmatically-reading-vs-coveragexml-file-in-c-sharp

To fix it, I changed the Parse method to include this code:

            var xmls = inputfiles.Where(s => s.EndsWith(".coveragexml"));
            inputfiles = inputfiles.Except(xmls).ToArray();

            // Open file
            using (CoverageInfo info = JoinCoverageFiles(inputfiles))
            {
                var dataSet = new CoverageDS();
                foreach (var xml in xmls)
                {
                    dataSet.ImportXml(xml);
                }

                if (info != null)
                    dataSet.Merge(info.BuildDataSet());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions