Ejemplo n.º 1
0
        public void TagsAreReportedInHtmlReport()
        {
            var model = new HtmlReportModel(this.CreateReportModel()) {
                RunDate = new DateTime(2014, 3, 25, 11, 30, 5)
            };

            var sut = new ClassicReportBuilder();
            ReportApprover.Approve(model, sut);
        }
Ejemplo n.º 2
0
        public void TagsAreReportedInMetroHtmlReport()
        {
            var reportModel = this.CreateReportModel();
            var model = new HtmlReportModel(reportModel)
            {
                RunDate = new DateTime(2014, 3, 25, 11, 30, 5)
            };

            var sut = new MetroReportBuilder();
            ReportApprover.Approve(model, sut);
        }
        public void ShouldProduceExpectedHtmlWithExamples()
        {
            var reportData = new ReportTestData().CreateTwoStoriesEachWithOneFailingScenarioAndOnePassingScenarioWithThreeStepsOfFiveMillisecondsAndEachHasTwoExamples().ToReportModel();
            var model = new HtmlReportModel(reportData)
            {
                RunDate = new DateTime(2014, 3, 25, 11, 30, 5)
            };

            var sut = new ClassicReportBuilder();
            ReportApprover.Approve(model, sut);
        }
        public void ShouldProduceExpectedHtml()
        {
            var model = 
                new HtmlReportModel(new ReportTestData().CreateMixContainingEachTypeOfOutcome().ToReportModel())
                    {
                        RunDate = new DateTime(2014, 3, 25, 11, 30, 5)
                    };

            var sut = new MetroReportBuilder();
            ReportApprover.Approve(model, sut);
        }
Ejemplo n.º 5
0
        public string CreateReport(HtmlReportModel model)
        {
            _model = model;
            AddLine("<!DOCTYPE html>");
            using (OpenTag(HtmlTag.html))
            {
                HtmlHead();
                HtmlBody();
            }

            return(_html.ToString());
        }
        public string CreateReport(HtmlReportModel model)
        {
            _model = model;
            AddLine("<!DOCTYPE html>");
            using (OpenTag(HtmlTag.html))
            {
                HtmlHead();
                HtmlBody();
            }

            return _html.ToString();
        }
Ejemplo n.º 7
0
        void WriteOutHtmlReport(ReportModel reportModel)
        {
            Model = new HtmlReportModel(_configuration, reportModel);
            LoadCustomScripts();
            string report;

            try
            {
                report = ReportBuilder.CreateReport(Model);
            }
            catch (Exception ex)
            {
                report = ex.Message + ex.StackTrace;
            }

            _writer.OutputReport(report, _configuration.OutputFileName, _configuration.OutputPath);
        }
Ejemplo n.º 8
0
        void WriteOutHtmlReport(IEnumerable<Story> stories)
        {
            Model = new HtmlReportModel(_configuration, stories);
            LoadCustomScripts();
            string report;

            try
            {
                report = ReportBuilder.CreateReport(Model);
            }
            catch (Exception ex)
            {
                report = ex.Message + ex.StackTrace;
            }

            _writer.OutputReport(report, _configuration.OutputFileName, _configuration.OutputPath);
        }