Пример #1
0
        private ParserResult ParseCoverageFiles(List <string> coverageFiles)
        {
            CoverageReportParser parser = new CoverageReportParser(1, new string[] { }, new DefaultFilter(new string[] { }),
                                                                   new DefaultFilter(new string[] { }),
                                                                   new DefaultFilter(new string[] { }));

            ReadOnlyCollection <string> collection = new ReadOnlyCollection <string>(coverageFiles);

            return(parser.ParseFiles(collection));
        }
Пример #2
0
        private ParserResult ParseCoverageFiles(List <string> coverageFiles)
        {
            TraceLogger.Debug("ReportGeneratorTool.ParseCoverageFiles: Parsing coverage files.");

            CoverageReportParser parser = new CoverageReportParser(1, 1, new string[] { }, new DefaultFilter(new string[] { }),
                                                                   new DefaultFilter(new string[] { }),
                                                                   new DefaultFilter(new string[] { }));

            ReadOnlyCollection <string> collection = new ReadOnlyCollection <string>(coverageFiles);

            return(parser.ParseFiles(collection));
        }
        public IActionResult GetCoverageDetails()
        {
            var parser = new CoverageReportParser(1, 1, new List <string>(),
                                                  new DefaultFilter(new List <string>()),
                                                  new DefaultFilter(new List <string>()),
                                                  new DefaultFilter(new List <string>()));

            IReadOnlyCollection <string> testCoverageFilePath = new Collection <string>()
            {
                ""
            };
            var parserResult = parser.ParseFiles(testCoverageFilePath);

            return(Ok(parserResult));
        }