Ejemplo n.º 1
0
        public void ShouldGenerateHtmlReportForTheGivenBuildLog()
        {
            var buildLog            = GetSampleBuildLog();
            var generatedHtmlReport = HtmlBuildReport.GenerateHtmlReportFor(buildLog);

            Assert.That(generatedHtmlReport, Is.Not.Null);
            Assert.That(generatedHtmlReport.Length, Is.GreaterThan(0));
        }
Ejemplo n.º 2
0
        private void OnBuildFinished(object sender, BuildFinishedEventArgs buildFinishedEventArgs)
        {
            buildLog.BuildFinishLog = new BuildFinishLog
            {
                Time             = buildFinishedEventArgs.Timestamp.ToString(),
                IsBuildSucceeded = buildFinishedEventArgs.Succeeded,
                Message          = buildFinishedEventArgs.Message
            };

            File.WriteAllText(OutputFileName, HtmlBuildReport.GenerateHtmlReportFor(buildLog));
        }