NUnitGoCore.CustomElements.ReportSections.MainInformationSection.MainInfoChart.SaveScript C# (CSharp) Method

SaveScript() public method

public SaveScript ( string path ) : void
path string
return void
        public void SaveScript(string path)
        {
            var fullPath = Path.Combine(path, Output.Files.StatsScript);
            File.WriteAllText(fullPath, JsCode);
        }

Usage Example

Example #1
0
        public static void Main(string[] args)
        {
            var config = NunitGoHelper.Configuration;
            var outputPath = config.LocalOutputPath;
            var attachmentsPath = outputPath + @"\Attachments\";

            PageGenerator.GenerateStyleFile(outputPath);

            var tests = NunitGoTestHelper.GetNewestTests(attachmentsPath).OrderBy(x => x.DateTimeFinish).ToList();
            var stats = new MainStatistics(tests);
            var statsChart = new MainInfoChart(stats, Output.GetStatsPieId());
            statsChart.SaveScript(outputPath);
            tests.GenerateTimelinePage(Path.Combine(outputPath, Output.Files.TimelineFile));
            stats.GenerateMainStatisticsPage(Path.Combine(outputPath, Output.Files.TestStatisticsFile));
            tests.GenerateTestListPage(Path.Combine(outputPath, Output.Files.TestListFile));
            tests.GenerateReportMainPage(outputPath, stats);
        }
All Usage Examples Of NUnitGoCore.CustomElements.ReportSections.MainInformationSection.MainInfoChart::SaveScript