コード例 #1
0
        /// <summary>
        /// Generate report content as a string based on results
        /// </summary>
        /// <param name="runDrop">Test run results</param>
        /// <param name="testParameters">test parameters</param>
        /// <param name="libraryDrop">library attribution properties</param>
        /// <returns>Report content</returns>
        protected virtual string GetReportContent(LibraryTestRun run)
        {
            var reportGenerator = new ReportGenerator(run);
            var report          = reportGenerator.GenerateReport(GetTemplateContent(), out var templateErrors);

            foreach (var error in templateErrors)
            {
                ConsoleOutput.Instance.Error(false, error.Message);
            }
            return(report);
        }